Commit bbf178f64b29d4576ba7de8afdce37d677f748e8
1 parent
8e3f84c3
fix(store): fix pinia typo
Showing
9 changed files
with
40 additions
and
38 deletions
package.json
@@ -47,7 +47,7 @@ | @@ -47,7 +47,7 @@ | ||
47 | "mockjs": "^1.1.0", | 47 | "mockjs": "^1.1.0", |
48 | "nprogress": "^0.2.0", | 48 | "nprogress": "^0.2.0", |
49 | "path-to-regexp": "^6.2.0", | 49 | "path-to-regexp": "^6.2.0", |
50 | - "pinia": "2.0.0-alpha.13", | 50 | + "pinia": "2.0.0-alpha.19", |
51 | "print-js": "^1.6.0", | 51 | "print-js": "^1.6.0", |
52 | "qrcode": "^1.4.4", | 52 | "qrcode": "^1.4.4", |
53 | "sortablejs": "^1.13.0", | 53 | "sortablejs": "^1.13.0", |
@@ -85,7 +85,7 @@ | @@ -85,7 +85,7 @@ | ||
85 | "commitizen": "^4.2.4", | 85 | "commitizen": "^4.2.4", |
86 | "conventional-changelog-cli": "^2.1.1", | 86 | "conventional-changelog-cli": "^2.1.1", |
87 | "cross-env": "^7.0.3", | 87 | "cross-env": "^7.0.3", |
88 | - "dotenv": "^9.0.2", | 88 | + "dotenv": "^10.0.0", |
89 | "eslint": "^7.27.0", | 89 | "eslint": "^7.27.0", |
90 | "eslint-config-prettier": "^8.3.0", | 90 | "eslint-config-prettier": "^8.3.0", |
91 | "eslint-define-config": "^1.0.8", | 91 | "eslint-define-config": "^1.0.8", |
@@ -127,7 +127,7 @@ | @@ -127,7 +127,7 @@ | ||
127 | "resolutions": { | 127 | "resolutions": { |
128 | "//": "Used to install imagemin dependencies, because imagemin may not be installed in China. If it is abroad, you can delete it", | 128 | "//": "Used to install imagemin dependencies, because imagemin may not be installed in China. If it is abroad, you can delete it", |
129 | "bin-wrapper": "npm:bin-wrapper-china", | 129 | "bin-wrapper": "npm:bin-wrapper-china", |
130 | - "rollup": "^2.48.0" | 130 | + "rollup": "^2.49.0" |
131 | }, | 131 | }, |
132 | "repository": { | 132 | "repository": { |
133 | "type": "git", | 133 | "type": "git", |
src/store/modules/app.ts
@@ -30,31 +30,31 @@ export const useAppStore = defineStore({ | @@ -30,31 +30,31 @@ export const useAppStore = defineStore({ | ||
30 | beforeMiniInfo: {}, | 30 | beforeMiniInfo: {}, |
31 | }), | 31 | }), |
32 | getters: { | 32 | getters: { |
33 | - getPageLoading() { | 33 | + getPageLoading(_) { |
34 | return this.pageLoading; | 34 | return this.pageLoading; |
35 | }, | 35 | }, |
36 | - getDarkMode(): 'light' | 'dark' | string { | 36 | + getDarkMode(_): 'light' | 'dark' | string { |
37 | return this.darkMode || localStorage.getItem(APP_DARK_MODE_KEY_) || darkMode; | 37 | return this.darkMode || localStorage.getItem(APP_DARK_MODE_KEY_) || darkMode; |
38 | }, | 38 | }, |
39 | 39 | ||
40 | - getBeforeMiniInfo() { | 40 | + getBeforeMiniInfo(_) { |
41 | return this.beforeMiniInfo; | 41 | return this.beforeMiniInfo; |
42 | }, | 42 | }, |
43 | 43 | ||
44 | - getProjectConfig(): ProjectConfig { | 44 | + getProjectConfig(_): ProjectConfig { |
45 | return this.projectConfig || ({} as ProjectConfig); | 45 | return this.projectConfig || ({} as ProjectConfig); |
46 | }, | 46 | }, |
47 | 47 | ||
48 | - getHeaderSetting() { | 48 | + getHeaderSetting(_) { |
49 | return this.getProjectConfig.headerSetting; | 49 | return this.getProjectConfig.headerSetting; |
50 | }, | 50 | }, |
51 | - getMenuSetting() { | 51 | + getMenuSetting(_) { |
52 | return this.getProjectConfig.menuSetting; | 52 | return this.getProjectConfig.menuSetting; |
53 | }, | 53 | }, |
54 | - getTransitionSetting() { | 54 | + getTransitionSetting(_) { |
55 | return this.getProjectConfig.transitionSetting; | 55 | return this.getProjectConfig.transitionSetting; |
56 | }, | 56 | }, |
57 | - getMultiTabsSetting() { | 57 | + getMultiTabsSetting(_) { |
58 | return this.getProjectConfig.multiTabsSetting; | 58 | return this.getProjectConfig.multiTabsSetting; |
59 | }, | 59 | }, |
60 | }, | 60 | }, |
src/store/modules/errorLog.ts
@@ -20,10 +20,10 @@ export const useErrorLogStore = defineStore({ | @@ -20,10 +20,10 @@ export const useErrorLogStore = defineStore({ | ||
20 | errorLogListCount: 0, | 20 | errorLogListCount: 0, |
21 | }), | 21 | }), |
22 | getters: { | 22 | getters: { |
23 | - getErrorLogInfoList() { | 23 | + getErrorLogInfoList(_) { |
24 | return this.errorLogInfoList || []; | 24 | return this.errorLogInfoList || []; |
25 | }, | 25 | }, |
26 | - getErrorLogListCount() { | 26 | + getErrorLogListCount(_) { |
27 | return this.errorLogListCount; | 27 | return this.errorLogListCount; |
28 | }, | 28 | }, |
29 | }, | 29 | }, |
src/store/modules/locale.ts
@@ -21,10 +21,10 @@ export const useLocaleStore = defineStore({ | @@ -21,10 +21,10 @@ export const useLocaleStore = defineStore({ | ||
21 | localInfo: lsLocaleSetting, | 21 | localInfo: lsLocaleSetting, |
22 | }), | 22 | }), |
23 | getters: { | 23 | getters: { |
24 | - getShowPicker() { | 24 | + getShowPicker(_) { |
25 | return !!this.localInfo?.showPicker; | 25 | return !!this.localInfo?.showPicker; |
26 | }, | 26 | }, |
27 | - getLocale(): LocaleType { | 27 | + getLocale(_): LocaleType { |
28 | return this.localInfo?.locale ?? 'zh_CN'; | 28 | return this.localInfo?.locale ?? 'zh_CN'; |
29 | }, | 29 | }, |
30 | }, | 30 | }, |
src/store/modules/lock.ts
@@ -16,7 +16,7 @@ export const useLockStore = defineStore({ | @@ -16,7 +16,7 @@ export const useLockStore = defineStore({ | ||
16 | lockInfo: Persistent.getLocal(LOCK_INFO_KEY), | 16 | lockInfo: Persistent.getLocal(LOCK_INFO_KEY), |
17 | }), | 17 | }), |
18 | getters: { | 18 | getters: { |
19 | - getLockInfo() { | 19 | + getLockInfo(_) { |
20 | return this.lockInfo; | 20 | return this.lockInfo; |
21 | }, | 21 | }, |
22 | }, | 22 | }, |
src/store/modules/multipleTab.ts
@@ -38,13 +38,13 @@ export const useMultipleTabStore = defineStore({ | @@ -38,13 +38,13 @@ export const useMultipleTabStore = defineStore({ | ||
38 | lastDragEndIndex: 0, | 38 | lastDragEndIndex: 0, |
39 | }), | 39 | }), |
40 | getters: { | 40 | getters: { |
41 | - getTabList() { | 41 | + getTabList(_) { |
42 | return this.tabList; | 42 | return this.tabList; |
43 | }, | 43 | }, |
44 | - getCachedTabList(): string[] { | 44 | + getCachedTabList(_): string[] { |
45 | return Array.from(this.cacheTabList); | 45 | return Array.from(this.cacheTabList); |
46 | }, | 46 | }, |
47 | - getLastDragEndIndex(): number { | 47 | + getLastDragEndIndex(_): number { |
48 | return this.lastDragEndIndex; | 48 | return this.lastDragEndIndex; |
49 | }, | 49 | }, |
50 | }, | 50 | }, |
src/store/modules/permission.ts
@@ -45,16 +45,16 @@ export const usePermissionStore = defineStore({ | @@ -45,16 +45,16 @@ export const usePermissionStore = defineStore({ | ||
45 | backMenuList: [], | 45 | backMenuList: [], |
46 | }), | 46 | }), |
47 | getters: { | 47 | getters: { |
48 | - getPermCodeList() { | 48 | + getPermCodeList(_) { |
49 | return this.permCodeList; | 49 | return this.permCodeList; |
50 | }, | 50 | }, |
51 | - getBackMenuList() { | 51 | + getBackMenuList(_) { |
52 | return this.backMenuList; | 52 | return this.backMenuList; |
53 | }, | 53 | }, |
54 | - getLastBuildMenuTime() { | 54 | + getLastBuildMenuTime(_) { |
55 | return this.lastBuildMenuTime; | 55 | return this.lastBuildMenuTime; |
56 | }, | 56 | }, |
57 | - getIsDynamicAddedRoute() { | 57 | + getIsDynamicAddedRoute(_) { |
58 | return this.isDynamicAddedRoute; | 58 | return this.isDynamicAddedRoute; |
59 | }, | 59 | }, |
60 | }, | 60 | }, |
src/store/modules/user.ts
@@ -38,13 +38,13 @@ export const useUserStore = defineStore({ | @@ -38,13 +38,13 @@ export const useUserStore = defineStore({ | ||
38 | roleList: [], | 38 | roleList: [], |
39 | }), | 39 | }), |
40 | getters: { | 40 | getters: { |
41 | - getUserInfo(): UserInfo { | 41 | + getUserInfo(_): UserInfo { |
42 | return this.userInfo || getAuthCache<UserInfo>(USER_INFO_KEY) || {}; | 42 | return this.userInfo || getAuthCache<UserInfo>(USER_INFO_KEY) || {}; |
43 | }, | 43 | }, |
44 | - getToken(): string { | 44 | + getToken(_): string { |
45 | return this.token || getAuthCache<string>(TOKEN_KEY); | 45 | return this.token || getAuthCache<string>(TOKEN_KEY); |
46 | }, | 46 | }, |
47 | - getRoleList(): RoleEnum[] { | 47 | + getRoleList(_): RoleEnum[] { |
48 | return this.roleList.length > 0 ? this.roleList : getAuthCache<RoleEnum[]>(ROLES_KEY); | 48 | return this.roleList.length > 0 ? this.roleList : getAuthCache<RoleEnum[]>(ROLES_KEY); |
49 | }, | 49 | }, |
50 | }, | 50 | }, |
yarn.lock
@@ -3937,10 +3937,10 @@ dot-prop@^5.1.0: | @@ -3937,10 +3937,10 @@ dot-prop@^5.1.0: | ||
3937 | dependencies: | 3937 | dependencies: |
3938 | is-obj "^2.0.0" | 3938 | is-obj "^2.0.0" |
3939 | 3939 | ||
3940 | -dotenv@^9.0.2: | ||
3941 | - version "9.0.2" | ||
3942 | - resolved "https://registry.npmjs.org/dotenv/-/dotenv-9.0.2.tgz#dacc20160935a37dea6364aa1bef819fb9b6ab05" | ||
3943 | - integrity sha512-I9OvvrHp4pIARv4+x9iuewrWycX6CcZtoAu1XrzPxc5UygMJXJZYmBsynku8IkrJwgypE5DGNjDPmPRhDCptUg== | 3940 | +dotenv@^10.0.0: |
3941 | + version "10.0.0" | ||
3942 | + resolved "https://registry.yarnpkg.com/dotenv/-/dotenv-10.0.0.tgz#3d4227b8fb95f81096cdd2b66653fb2c7085ba81" | ||
3943 | + integrity sha512-rlBi9d8jpv9Sf1klPjNfFAuWDjKLwTIJJ/VxtoTwIR6hnZxcEOQCZg2oIL3MWBYw5GpUDKOEnND7LXTbIpQ03Q== | ||
3944 | 3944 | ||
3945 | download@^6.2.2: | 3945 | download@^6.2.2: |
3946 | version "6.2.5" | 3946 | version "6.2.5" |
@@ -7815,10 +7815,12 @@ pify@^4.0.1: | @@ -7815,10 +7815,12 @@ pify@^4.0.1: | ||
7815 | resolved "https://registry.npmjs.org/pify/-/pify-4.0.1.tgz#4b2cd25c50d598735c50292224fd8c6df41e3231" | 7815 | resolved "https://registry.npmjs.org/pify/-/pify-4.0.1.tgz#4b2cd25c50d598735c50292224fd8c6df41e3231" |
7816 | integrity sha512-uB80kBFb/tfd68bVleG9T5GGsGPjJrLAUpR5PZIrhBnIaRTQRjqdJSsIKkOP6OAIFbj7GOrcudc5pNjZ+geV2g== | 7816 | integrity sha512-uB80kBFb/tfd68bVleG9T5GGsGPjJrLAUpR5PZIrhBnIaRTQRjqdJSsIKkOP6OAIFbj7GOrcudc5pNjZ+geV2g== |
7817 | 7817 | ||
7818 | -pinia@2.0.0-alpha.13: | ||
7819 | - version "2.0.0-alpha.13" | ||
7820 | - resolved "https://registry.npmjs.org/pinia/-/pinia-2.0.0-alpha.13.tgz#d48e6efec11d38201e20770bc02b168e2157a9f7" | ||
7821 | - integrity sha512-3r9fpUi5Uai48vjeTXzcHAvlDjYvx/9mNtWiO5QyWy4zqfn7YjvOiBCHXH9r1jwo4LakZzG/ppr5i6sr/63fYQ== | 7818 | +pinia@2.0.0-alpha.19: |
7819 | + version "2.0.0-alpha.19" | ||
7820 | + resolved "https://registry.yarnpkg.com/pinia/-/pinia-2.0.0-alpha.19.tgz#0a119c65585a67f7756d5995d11d4b1df4acfbeb" | ||
7821 | + integrity sha512-U/FvKm2tVUdqEuPorkYvD3oCgIj/u5EnF9TbX5dEpkNkoWKQM1i23e97QKtQFGuTxMSfzmBFFINv4A9VeVZ1wQ== | ||
7822 | + dependencies: | ||
7823 | + "@vue/devtools-api" "^6.0.0-beta.10" | ||
7822 | 7824 | ||
7823 | pinkie-promise@^2.0.0: | 7825 | pinkie-promise@^2.0.0: |
7824 | version "2.0.1" | 7826 | version "2.0.1" |
@@ -8778,10 +8780,10 @@ rollup-plugin-visualizer@5.5.0: | @@ -8778,10 +8780,10 @@ rollup-plugin-visualizer@5.5.0: | ||
8778 | source-map "^0.7.3" | 8780 | source-map "^0.7.3" |
8779 | yargs "^16.2.0" | 8781 | yargs "^16.2.0" |
8780 | 8782 | ||
8781 | -rollup@^2.38.5, rollup@^2.43.1, rollup@^2.45.2, rollup@^2.48.0: | ||
8782 | - version "2.48.0" | ||
8783 | - resolved "https://registry.npmjs.org/rollup/-/rollup-2.48.0.tgz#fceb01ed771f991f29f7bd2ff7838146e55acb74" | ||
8784 | - integrity sha512-wl9ZSSSsi5579oscSDYSzGn092tCS076YB+TQrzsGuSfYyJeep8eEWj0eaRjuC5McuMNmcnR8icBqiE/FWNB1A== | 8783 | +rollup@^2.38.5, rollup@^2.43.1, rollup@^2.45.2, rollup@^2.49.0: |
8784 | + version "2.49.0" | ||
8785 | + resolved "https://registry.yarnpkg.com/rollup/-/rollup-2.49.0.tgz#f0e5bb2b770ddf1be8cc30d4cce3457574c8c871" | ||
8786 | + integrity sha512-UnrCjMXICx9q0jF8L7OYs7LPk95dW0U5UYp/VANnWqfuhyr66FWi/YVlI34Oy8Tp4ZGLcaUDt4APJm80b9oPWQ== | ||
8785 | optionalDependencies: | 8787 | optionalDependencies: |
8786 | fsevents "~2.3.1" | 8788 | fsevents "~2.3.1" |
8787 | 8789 |