Skip to content

Commit 64ebc16

Browse files
authored
fix(toolkit/pro): fix the error: Maximum call stack size exceeded (#136)
* fix(toolkit/pro): fix the error: Maximum call stack size exceeded fix #128 * fix(toolkit/pro): fix the error: Maximum call stack size exceeded
1 parent 8e977c6 commit 64ebc16

File tree

4 files changed

+4
-4
lines changed

4 files changed

+4
-4
lines changed

packages/toolkits/pro/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@opentiny/tiny-toolkit-pro",
3-
"version": "1.0.20",
3+
"version": "1.0.21",
44
"description": "TinyPro 开箱即用的中后台前端/设计解决方案",
55
"main": "dist/index.js",
66
"typings": "dist/index.d.ts",

packages/toolkits/pro/template/tinyvue/src/router/routes/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import type { RouteRecordRaw } from 'vue-router';
22

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

66
Object.keys(modules).forEach((key) => {

packages/toolkits/pro/template/tinyvue/src/store/modules/app/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ const useAppStore = defineStore('app', {
77

88
getters: {
99
appCurrentSetting(state: AppState): AppState {
10-
return { ...state };
10+
return state;
1111
},
1212
appDevice(state: AppState) {
1313
return state.device;

packages/toolkits/pro/template/tinyvue/src/store/modules/user/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ const useUserStore = defineStore('user', {
3737

3838
getters: {
3939
userInfo(state: UserState): UserState {
40-
return { ...state };
40+
return state;
4141
},
4242
},
4343

0 commit comments

Comments
 (0)