Skip to content

Commit bbf178f

Browse files
committed
fix(store): fix pinia typo
1 parent 8e3f84c commit bbf178f

File tree

9 files changed

+40
-38
lines changed

9 files changed

+40
-38
lines changed

package.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@
4747
"mockjs": "^1.1.0",
4848
"nprogress": "^0.2.0",
4949
"path-to-regexp": "^6.2.0",
50-
"pinia": "2.0.0-alpha.13",
50+
"pinia": "2.0.0-alpha.19",
5151
"print-js": "^1.6.0",
5252
"qrcode": "^1.4.4",
5353
"sortablejs": "^1.13.0",
@@ -85,7 +85,7 @@
8585
"commitizen": "^4.2.4",
8686
"conventional-changelog-cli": "^2.1.1",
8787
"cross-env": "^7.0.3",
88-
"dotenv": "^9.0.2",
88+
"dotenv": "^10.0.0",
8989
"eslint": "^7.27.0",
9090
"eslint-config-prettier": "^8.3.0",
9191
"eslint-define-config": "^1.0.8",
@@ -127,7 +127,7 @@
127127
"resolutions": {
128128
"//": "Used to install imagemin dependencies, because imagemin may not be installed in China. If it is abroad, you can delete it",
129129
"bin-wrapper": "npm:bin-wrapper-china",
130-
"rollup": "^2.48.0"
130+
"rollup": "^2.49.0"
131131
},
132132
"repository": {
133133
"type": "git",

src/store/modules/app.ts

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -30,31 +30,31 @@ export const useAppStore = defineStore({
3030
beforeMiniInfo: {},
3131
}),
3232
getters: {
33-
getPageLoading() {
33+
getPageLoading(_) {
3434
return this.pageLoading;
3535
},
36-
getDarkMode(): 'light' | 'dark' | string {
36+
getDarkMode(_): 'light' | 'dark' | string {
3737
return this.darkMode || localStorage.getItem(APP_DARK_MODE_KEY_) || darkMode;
3838
},
3939

40-
getBeforeMiniInfo() {
40+
getBeforeMiniInfo(_) {
4141
return this.beforeMiniInfo;
4242
},
4343

44-
getProjectConfig(): ProjectConfig {
44+
getProjectConfig(_): ProjectConfig {
4545
return this.projectConfig || ({} as ProjectConfig);
4646
},
4747

48-
getHeaderSetting() {
48+
getHeaderSetting(_) {
4949
return this.getProjectConfig.headerSetting;
5050
},
51-
getMenuSetting() {
51+
getMenuSetting(_) {
5252
return this.getProjectConfig.menuSetting;
5353
},
54-
getTransitionSetting() {
54+
getTransitionSetting(_) {
5555
return this.getProjectConfig.transitionSetting;
5656
},
57-
getMultiTabsSetting() {
57+
getMultiTabsSetting(_) {
5858
return this.getProjectConfig.multiTabsSetting;
5959
},
6060
},

src/store/modules/errorLog.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,10 +20,10 @@ export const useErrorLogStore = defineStore({
2020
errorLogListCount: 0,
2121
}),
2222
getters: {
23-
getErrorLogInfoList() {
23+
getErrorLogInfoList(_) {
2424
return this.errorLogInfoList || [];
2525
},
26-
getErrorLogListCount() {
26+
getErrorLogListCount(_) {
2727
return this.errorLogListCount;
2828
},
2929
},

src/store/modules/locale.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,10 +21,10 @@ export const useLocaleStore = defineStore({
2121
localInfo: lsLocaleSetting,
2222
}),
2323
getters: {
24-
getShowPicker() {
24+
getShowPicker(_) {
2525
return !!this.localInfo?.showPicker;
2626
},
27-
getLocale(): LocaleType {
27+
getLocale(_): LocaleType {
2828
return this.localInfo?.locale ?? 'zh_CN';
2929
},
3030
},

src/store/modules/lock.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ export const useLockStore = defineStore({
1616
lockInfo: Persistent.getLocal(LOCK_INFO_KEY),
1717
}),
1818
getters: {
19-
getLockInfo() {
19+
getLockInfo(_) {
2020
return this.lockInfo;
2121
},
2222
},

src/store/modules/multipleTab.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -38,13 +38,13 @@ export const useMultipleTabStore = defineStore({
3838
lastDragEndIndex: 0,
3939
}),
4040
getters: {
41-
getTabList() {
41+
getTabList(_) {
4242
return this.tabList;
4343
},
44-
getCachedTabList(): string[] {
44+
getCachedTabList(_): string[] {
4545
return Array.from(this.cacheTabList);
4646
},
47-
getLastDragEndIndex(): number {
47+
getLastDragEndIndex(_): number {
4848
return this.lastDragEndIndex;
4949
},
5050
},

src/store/modules/permission.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -45,16 +45,16 @@ export const usePermissionStore = defineStore({
4545
backMenuList: [],
4646
}),
4747
getters: {
48-
getPermCodeList() {
48+
getPermCodeList(_) {
4949
return this.permCodeList;
5050
},
51-
getBackMenuList() {
51+
getBackMenuList(_) {
5252
return this.backMenuList;
5353
},
54-
getLastBuildMenuTime() {
54+
getLastBuildMenuTime(_) {
5555
return this.lastBuildMenuTime;
5656
},
57-
getIsDynamicAddedRoute() {
57+
getIsDynamicAddedRoute(_) {
5858
return this.isDynamicAddedRoute;
5959
},
6060
},

src/store/modules/user.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -38,13 +38,13 @@ export const useUserStore = defineStore({
3838
roleList: [],
3939
}),
4040
getters: {
41-
getUserInfo(): UserInfo {
41+
getUserInfo(_): UserInfo {
4242
return this.userInfo || getAuthCache<UserInfo>(USER_INFO_KEY) || {};
4343
},
44-
getToken(): string {
44+
getToken(_): string {
4545
return this.token || getAuthCache<string>(TOKEN_KEY);
4646
},
47-
getRoleList(): RoleEnum[] {
47+
getRoleList(_): RoleEnum[] {
4848
return this.roleList.length > 0 ? this.roleList : getAuthCache<RoleEnum[]>(ROLES_KEY);
4949
},
5050
},

yarn.lock

Lines changed: 14 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -3937,10 +3937,10 @@ dot-prop@^5.1.0:
39373937
dependencies:
39383938
is-obj "^2.0.0"
39393939

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==
39443944

39453945
download@^6.2.2:
39463946
version "6.2.5"
@@ -7815,10 +7815,12 @@ pify@^4.0.1:
78157815
resolved "https://registry.npmjs.org/pify/-/pify-4.0.1.tgz#4b2cd25c50d598735c50292224fd8c6df41e3231"
78167816
integrity sha512-uB80kBFb/tfd68bVleG9T5GGsGPjJrLAUpR5PZIrhBnIaRTQRjqdJSsIKkOP6OAIFbj7GOrcudc5pNjZ+geV2g==
78177817

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"
78227824

78237825
pinkie-promise@^2.0.0:
78247826
version "2.0.1"
@@ -8778,10 +8780,10 @@ rollup-plugin-visualizer@5.5.0:
87788780
source-map "^0.7.3"
87798781
yargs "^16.2.0"
87808782

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==
87858787
optionalDependencies:
87868788
fsevents "~2.3.1"
87878789

0 commit comments

Comments
 (0)