Skip to content

Commit

Permalink
fix(toolkit/pro): fix the error: Maximum call stack size exceeded
Browse files Browse the repository at this point in the history
fix #128
  • Loading branch information
fengyon committed Apr 19, 2024
1 parent 8e977c6 commit 40dcc4a
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
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 40dcc4a

Please sign in to comment.