Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
Dr.Disrespect
vue-vben-admin
提交
cd4b5e14
V
vue-vben-admin
项目概览
Dr.Disrespect
/
vue-vben-admin
与 Fork 源项目一致
从无法访问的项目Fork
通知
1
Star
0
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
DevOps
流水线
流水线任务
计划
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
V
vue-vben-admin
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
DevOps
DevOps
流水线
流水线任务
计划
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
流水线任务
提交
Issue看板
前往新版Gitcode,体验更适合开发者的 AI 搜索 >>
提交
cd4b5e14
编写于
5月 25, 2021
作者:
V
vben
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
fix(types): fix store types
上级
765064a1
变更
9
展开全部
隐藏空白更改
内联
并排
Showing
9 changed file
with
227 addition
and
215 deletion
+227
-215
package.json
package.json
+12
-12
src/store/modules/app.ts
src/store/modules/app.ts
+8
-8
src/store/modules/errorLog.ts
src/store/modules/errorLog.ts
+2
-2
src/store/modules/locale.ts
src/store/modules/locale.ts
+2
-2
src/store/modules/lock.ts
src/store/modules/lock.ts
+1
-1
src/store/modules/multipleTab.ts
src/store/modules/multipleTab.ts
+3
-3
src/store/modules/permission.ts
src/store/modules/permission.ts
+4
-4
src/store/modules/user.ts
src/store/modules/user.ts
+3
-3
yarn.lock
yarn.lock
+192
-180
未找到文件。
package.json
浏览文件 @
cd4b5e14
...
...
@@ -33,9 +33,9 @@
},
"dependencies"
:
{
"
@iconify/iconify
"
:
"
^2.0.1
"
,
"
@logicflow/core
"
:
"
^0.4.
6
"
,
"
@logicflow/extension
"
:
"
^0.4.
6
"
,
"
@vueuse/core
"
:
"
^4.11.
0
"
,
"
@logicflow/core
"
:
"
^0.4.
7
"
,
"
@logicflow/extension
"
:
"
^0.4.
7
"
,
"
@vueuse/core
"
:
"
^4.11.
1
"
,
"
@zxcvbn-ts/core
"
:
"
^0.3.0
"
,
"
ant-design-vue
"
:
"
^2.1.6
"
,
"
axios
"
:
"
^0.21.1
"
,
...
...
@@ -47,7 +47,7 @@
"
mockjs
"
:
"
^1.1.0
"
,
"
nprogress
"
:
"
^0.2.0
"
,
"
path-to-regexp
"
:
"
^6.2.0
"
,
"
pinia
"
:
"
2.0.0-alpha.1
9
"
,
"
pinia
"
:
"
2.0.0-alpha.1
3
"
,
"
print-js
"
:
"
^1.6.0
"
,
"
qrcode
"
:
"
^1.4.4
"
,
"
sortablejs
"
:
"
^1.13.0
"
,
...
...
@@ -63,7 +63,7 @@
"devDependencies"
:
{
"
@commitlint/cli
"
:
"
^12.1.4
"
,
"
@commitlint/config-conventional
"
:
"
^12.1.4
"
,
"
@iconify/json
"
:
"
^1.1.34
7
"
,
"
@iconify/json
"
:
"
^1.1.34
8
"
,
"
@purge-icons/generated
"
:
"
^0.7.0
"
,
"
@types/codemirror
"
:
"
^5.60.0
"
,
"
@types/crypto-js
"
:
"
^4.0.1
"
,
...
...
@@ -75,8 +75,8 @@
"
@types/qrcode
"
:
"
^1.4.0
"
,
"
@types/qs
"
:
"
^6.9.6
"
,
"
@types/sortablejs
"
:
"
^1.10.6
"
,
"
@typescript-eslint/eslint-plugin
"
:
"
^4.2
4
.0
"
,
"
@typescript-eslint/parser
"
:
"
^4.2
4
.0
"
,
"
@typescript-eslint/eslint-plugin
"
:
"
^4.2
5
.0
"
,
"
@typescript-eslint/parser
"
:
"
^4.2
5
.0
"
,
"
@vitejs/plugin-legacy
"
:
"
^1.4.0
"
,
"
@vitejs/plugin-vue
"
:
"
^1.2.2
"
,
"
@vitejs/plugin-vue-jsx
"
:
"
^1.1.4
"
,
...
...
@@ -108,21 +108,21 @@
"
stylelint-config-prettier
"
:
"
^8.0.2
"
,
"
stylelint-config-standard
"
:
"
^22.0.0
"
,
"
stylelint-order
"
:
"
^4.1.0
"
,
"
ts-node
"
:
"
^
9.1.1
"
,
"
ts-node
"
:
"
^
10.0.0
"
,
"
typescript
"
:
"
4.2.4
"
,
"
vite
"
:
"
2.3.3
"
,
"
vite-plugin-compression
"
:
"
^0.2.5
"
,
"
vite-plugin-html
"
:
"
^2.0.7
"
,
"
vite-plugin-imagemin
"
:
"
^0.3.2
"
,
"
vite-plugin-mock
"
:
"
^2.5.
0
"
,
"
vite-plugin-mock
"
:
"
^2.5.
2
"
,
"
vite-plugin-purge-icons
"
:
"
^0.7.0
"
,
"
vite-plugin-pwa
"
:
"
^0.7.3
"
,
"
vite-plugin-style-import
"
:
"
^0.10.0
"
,
"
vite-plugin-svg-icons
"
:
"
^0.
5
.0
"
,
"
vite-plugin-svg-icons
"
:
"
^0.
6
.0
"
,
"
vite-plugin-theme
"
:
"
^0.7.1
"
,
"
vite-plugin-windicss
"
:
"
0.1
5.1
0
"
,
"
vite-plugin-windicss
"
:
"
0.1
6.
0
"
,
"
vue-eslint-parser
"
:
"
^7.6.0
"
,
"
vue-tsc
"
:
"
^0.1.
3
"
"
vue-tsc
"
:
"
^0.1.
6
"
},
"resolutions"
:
{
"//"
:
"Used to install imagemin dependencies, because imagemin may not be installed in China. If it is abroad, you can delete it"
,
...
...
src/store/modules/app.ts
浏览文件 @
cd4b5e14
...
...
@@ -30,31 +30,31 @@ export const useAppStore = defineStore({
beforeMiniInfo
:
{},
}),
getters
:
{
getPageLoading
(
_
)
{
getPageLoading
()
{
return
this
.
pageLoading
;
},
getDarkMode
(
_
):
'
light
'
|
'
dark
'
|
string
{
getDarkMode
():
'
light
'
|
'
dark
'
|
string
{
return
this
.
darkMode
||
localStorage
.
getItem
(
APP_DARK_MODE_KEY_
)
||
darkMode
;
},
getBeforeMiniInfo
(
_
)
{
getBeforeMiniInfo
()
{
return
this
.
beforeMiniInfo
;
},
getProjectConfig
(
_
):
ProjectConfig
{
getProjectConfig
():
ProjectConfig
{
return
this
.
projectConfig
||
({}
as
ProjectConfig
);
},
getHeaderSetting
(
_
)
{
getHeaderSetting
()
{
return
this
.
getProjectConfig
.
headerSetting
;
},
getMenuSetting
(
_
)
{
getMenuSetting
()
{
return
this
.
getProjectConfig
.
menuSetting
;
},
getTransitionSetting
(
_
)
{
getTransitionSetting
()
{
return
this
.
getProjectConfig
.
transitionSetting
;
},
getMultiTabsSetting
(
_
)
{
getMultiTabsSetting
()
{
return
this
.
getProjectConfig
.
multiTabsSetting
;
},
},
...
...
src/store/modules/errorLog.ts
浏览文件 @
cd4b5e14
...
...
@@ -20,10 +20,10 @@ export const useErrorLogStore = defineStore({
errorLogListCount
:
0
,
}),
getters
:
{
getErrorLogInfoList
(
_
)
{
getErrorLogInfoList
()
{
return
this
.
errorLogInfoList
||
[];
},
getErrorLogListCount
(
_
)
{
getErrorLogListCount
()
{
return
this
.
errorLogListCount
;
},
},
...
...
src/store/modules/locale.ts
浏览文件 @
cd4b5e14
...
...
@@ -21,10 +21,10 @@ export const useLocaleStore = defineStore({
localInfo
:
lsLocaleSetting
,
}),
getters
:
{
getShowPicker
(
_
)
{
getShowPicker
()
{
return
!!
this
.
localInfo
?.
showPicker
;
},
getLocale
(
_
):
LocaleType
{
getLocale
():
LocaleType
{
return
this
.
localInfo
?.
locale
??
'
zh_CN
'
;
},
},
...
...
src/store/modules/lock.ts
浏览文件 @
cd4b5e14
...
...
@@ -16,7 +16,7 @@ export const useLockStore = defineStore({
lockInfo
:
Persistent
.
getLocal
(
LOCK_INFO_KEY
),
}),
getters
:
{
getLockInfo
(
_
)
{
getLockInfo
()
{
return
this
.
lockInfo
;
},
},
...
...
src/store/modules/multipleTab.ts
浏览文件 @
cd4b5e14
...
...
@@ -38,13 +38,13 @@ export const useMultipleTabStore = defineStore({
lastDragEndIndex
:
0
,
}),
getters
:
{
getTabList
(
_
)
{
getTabList
()
{
return
this
.
tabList
;
},
getCachedTabList
(
_
):
string
[]
{
getCachedTabList
():
string
[]
{
return
Array
.
from
(
this
.
cacheTabList
);
},
getLastDragEndIndex
(
_
):
number
{
getLastDragEndIndex
():
number
{
return
this
.
lastDragEndIndex
;
},
},
...
...
src/store/modules/permission.ts
浏览文件 @
cd4b5e14
...
...
@@ -45,16 +45,16 @@ export const usePermissionStore = defineStore({
backMenuList
:
[],
}),
getters
:
{
getPermCodeList
(
_
)
{
getPermCodeList
()
{
return
this
.
permCodeList
;
},
getBackMenuList
(
_
)
{
getBackMenuList
()
{
return
this
.
backMenuList
;
},
getLastBuildMenuTime
(
_
)
{
getLastBuildMenuTime
()
{
return
this
.
lastBuildMenuTime
;
},
getIsDynamicAddedRoute
(
_
)
{
getIsDynamicAddedRoute
()
{
return
this
.
isDynamicAddedRoute
;
},
},
...
...
src/store/modules/user.ts
浏览文件 @
cd4b5e14
...
...
@@ -38,13 +38,13 @@ export const useUserStore = defineStore({
roleList
:
[],
}),
getters
:
{
getUserInfo
(
_
):
UserInfo
{
getUserInfo
():
UserInfo
{
return
this
.
userInfo
||
getAuthCache
<
UserInfo
>
(
USER_INFO_KEY
)
||
{};
},
getToken
(
_
):
string
{
getToken
():
string
{
return
this
.
token
||
getAuthCache
<
string
>
(
TOKEN_KEY
);
},
getRoleList
(
_
):
RoleEnum
[]
{
getRoleList
():
RoleEnum
[]
{
return
this
.
roleList
.
length
>
0
?
this
.
roleList
:
getAuthCache
<
RoleEnum
[]
>
(
ROLES_KEY
);
},
},
...
...
yarn.lock
浏览文件 @
cd4b5e14
此差异已折叠。
点击以展开。
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录