Skip to content

Commit

Permalink
fix(toolkit/pro): fix the error: Maximum call stack size exceeded (#136)
Browse files Browse the repository at this point in the history
* fix(toolkit/pro): fix the error: Maximum call stack size exceeded

fix #128

* fix(toolkit/pro): fix the error: Maximum call stack size exceeded
  • Loading branch information
fengyon authored Apr 22, 2024
1 parent 8e977c6 commit 64ebc16
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion packages/toolkits/pro/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@opentiny/tiny-toolkit-pro",
"version": "1.0.20",
"version": "1.0.21",
"description": "TinyPro 开箱即用的中后台前端/设计解决方案",
"main": "dist/index.js",
"typings": "dist/index.d.ts",
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import type { RouteRecordRaw } from 'vue-router';

const modules = import.meta.globEager('./modules/*.ts');
const modules = import.meta.glob('./modules/*.ts', { eager: true });
const appRoutes: RouteRecordRaw[] = [];

Object.keys(modules).forEach((key) => {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ const useAppStore = defineStore('app', {

getters: {
appCurrentSetting(state: AppState): AppState {
return { ...state };
return state;
},
appDevice(state: AppState) {
return state.device;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ const useUserStore = defineStore('user', {

getters: {
userInfo(state: UserState): UserState {
return { ...state };
return state;
},
},

Expand Down

0 comments on commit 64ebc16

Please sign in to comment.