Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
jxf111348
vue-vben-admin
提交
9a710296
V
vue-vben-admin
项目概览
jxf111348
/
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,发现更多精彩内容 >>
提交
9a710296
编写于
2月 21, 2021
作者:
V
vben
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
chore: update deps
上级
ec9478f7
变更
9
隐藏空白更改
内联
并排
Showing
9 changed file
with
34 addition
and
20 deletion
+34
-20
package.json
package.json
+3
-3
src/components/Application/src/AppLocalePicker.vue
src/components/Application/src/AppLocalePicker.vue
+1
-0
src/components/Dropdown/src/Dropdown.vue
src/components/Dropdown/src/Dropdown.vue
+10
-2
src/hooks/web/useFullContent.ts
src/hooks/web/useFullContent.ts
+1
-0
src/router/guard/permissionGuard.ts
src/router/guard/permissionGuard.ts
+1
-1
src/router/guard/titleGuard.ts
src/router/guard/titleGuard.ts
+1
-1
src/router/index.ts
src/router/index.ts
+1
-1
src/views/sys/login/RegisterForm.vue
src/views/sys/login/RegisterForm.vue
+1
-2
yarn.lock
yarn.lock
+15
-10
未找到文件。
package.json
浏览文件 @
9a710296
...
@@ -34,7 +34,7 @@
...
@@ -34,7 +34,7 @@
"
axios
"
:
"
^0.21.1
"
,
"
axios
"
:
"
^0.21.1
"
,
"
crypto-es
"
:
"
^1.2.7
"
,
"
crypto-es
"
:
"
^1.2.7
"
,
"
echarts
"
:
"
^5.0.2
"
,
"
echarts
"
:
"
^5.0.2
"
,
"
lodash-es
"
:
"
^4.17.2
0
"
,
"
lodash-es
"
:
"
^4.17.2
1
"
,
"
mockjs
"
:
"
^1.1.0
"
,
"
mockjs
"
:
"
^1.1.0
"
,
"
nprogress
"
:
"
^0.2.0
"
,
"
nprogress
"
:
"
^0.2.0
"
,
"
path-to-regexp
"
:
"
^6.2.0
"
,
"
path-to-regexp
"
:
"
^6.2.0
"
,
...
@@ -52,7 +52,7 @@
...
@@ -52,7 +52,7 @@
"devDependencies"
:
{
"devDependencies"
:
{
"
@commitlint/cli
"
:
"
^11.0.0
"
,
"
@commitlint/cli
"
:
"
^11.0.0
"
,
"
@commitlint/config-conventional
"
:
"
^11.0.0
"
,
"
@commitlint/config-conventional
"
:
"
^11.0.0
"
,
"
@iconify/json
"
:
"
^1.1.30
5
"
,
"
@iconify/json
"
:
"
^1.1.30
6
"
,
"
@ls-lint/ls-lint
"
:
"
^1.9.2
"
,
"
@ls-lint/ls-lint
"
:
"
^1.9.2
"
,
"
@purge-icons/generated
"
:
"
^0.7.0
"
,
"
@purge-icons/generated
"
:
"
^0.7.0
"
,
"
@types/fs-extra
"
:
"
^9.0.7
"
,
"
@types/fs-extra
"
:
"
^9.0.7
"
,
...
@@ -101,7 +101,7 @@
...
@@ -101,7 +101,7 @@
"
vite
"
:
"
2.0.1
"
,
"
vite
"
:
"
2.0.1
"
,
"
vite-plugin-compression
"
:
"
^0.2.1
"
,
"
vite-plugin-compression
"
:
"
^0.2.1
"
,
"
vite-plugin-html
"
:
"
^2.0.0
"
,
"
vite-plugin-html
"
:
"
^2.0.0
"
,
"
vite-plugin-imagemin
"
:
"
^0.2.
6
"
,
"
vite-plugin-imagemin
"
:
"
^0.2.
7
"
,
"
vite-plugin-mock
"
:
"
^2.1.4
"
,
"
vite-plugin-mock
"
:
"
^2.1.4
"
,
"
vite-plugin-purge-icons
"
:
"
^0.7.0
"
,
"
vite-plugin-purge-icons
"
:
"
^0.7.0
"
,
"
vite-plugin-pwa
"
:
"
^0.5.2
"
,
"
vite-plugin-pwa
"
:
"
^0.5.2
"
,
...
...
src/components/Application/src/AppLocalePicker.vue
浏览文件 @
9a710296
...
@@ -65,6 +65,7 @@
...
@@ -65,6 +65,7 @@
}
}
function
handleMenuEvent
(
menu
:
DropMenu
)
{
function
handleMenuEvent
(
menu
:
DropMenu
)
{
if
(
unref
(
getLang
)
===
menu
.
event
)
return
;
toggleLocale
(
menu
.
event
as
string
);
toggleLocale
(
menu
.
event
as
string
);
}
}
...
...
src/components/Dropdown/src/Dropdown.vue
浏览文件 @
9a710296
...
@@ -6,7 +6,11 @@
...
@@ -6,7 +6,11 @@
<template
#overlay
>
<template
#overlay
>
<a-menu
:selectedKeys=
"selectedKeys"
>
<a-menu
:selectedKeys=
"selectedKeys"
>
<template
v-for=
"item in getMenuList"
:key=
"`$
{item.event}`">
<template
v-for=
"item in getMenuList"
:key=
"`$
{item.event}`">
<a-menu-item
@
click=
"handleClickMenu(item)"
:disabled=
"item.disabled"
>
<a-menu-item
v-bind=
"getAttr(item.event)"
@
click=
"handleClickMenu(item)"
:disabled=
"item.disabled"
>
<Icon
:icon=
"item.icon"
v-if=
"item.icon"
/>
<Icon
:icon=
"item.icon"
v-if=
"item.icon"
/>
<span
class=
"ml-1"
>
{{
item
.
text
}}
</span>
<span
class=
"ml-1"
>
{{
item
.
text
}}
</span>
</a-menu-item>
</a-menu-item>
...
@@ -66,7 +70,11 @@
...
@@ -66,7 +70,11 @@
item
.
onClick
?.();
item
.
onClick
?.();
}
}
return
{
handleClickMenu
,
getMenuList
};
return
{
handleClickMenu
,
getMenuList
,
getAttr
:
(
key
:
string
)
=>
({
key
}),
};
},
},
});
});
</
script
>
</
script
>
src/hooks/web/useFullContent.ts
浏览文件 @
9a710296
...
@@ -3,6 +3,7 @@ import { computed, unref } from 'vue';
...
@@ -3,6 +3,7 @@ import { computed, unref } from 'vue';
import
{
appStore
}
from
'
/@/store/modules/app
'
;
import
{
appStore
}
from
'
/@/store/modules/app
'
;
import
router
from
'
/@/router
'
;
import
router
from
'
/@/router
'
;
/**
/**
* @description: Full screen display content
* @description: Full screen display content
*/
*/
...
...
src/router/guard/permissionGuard.ts
浏览文件 @
9a710296
...
@@ -58,7 +58,7 @@ export function createPermissionGuard(router: Router) {
...
@@ -58,7 +58,7 @@ export function createPermissionGuard(router: Router) {
const
routes
=
await
permissionStore
.
buildRoutesAction
();
const
routes
=
await
permissionStore
.
buildRoutesAction
();
routes
.
forEach
((
route
)
=>
{
routes
.
forEach
((
route
)
=>
{
router
.
addRoute
(
route
as
RouteRecordRaw
);
router
.
addRoute
(
(
route
as
unknown
)
as
RouteRecordRaw
);
});
});
const
redirectPath
=
(
from
.
query
.
redirect
||
to
.
path
)
as
string
;
const
redirectPath
=
(
from
.
query
.
redirect
||
to
.
path
)
as
string
;
...
...
src/router/guard/titleGuard.ts
浏览文件 @
9a710296
...
@@ -12,7 +12,7 @@ const globSetting = useGlobSetting();
...
@@ -12,7 +12,7 @@ const globSetting = useGlobSetting();
export
function
createTitleGuard
(
router
:
Router
)
{
export
function
createTitleGuard
(
router
:
Router
)
{
router
.
afterEach
(
async
(
to
)
=>
{
router
.
afterEach
(
async
(
to
)
=>
{
const
{
t
}
=
useI18n
();
const
{
t
}
=
useI18n
();
to
.
name
!==
REDIRECT_NAME
&&
setTitle
(
t
(
to
.
meta
.
title
),
globSetting
.
title
);
to
.
name
!==
REDIRECT_NAME
&&
setTitle
(
t
(
to
.
meta
.
title
as
string
),
globSetting
.
title
);
return
true
;
return
true
;
});
});
}
}
src/router/index.ts
浏览文件 @
9a710296
...
@@ -12,7 +12,7 @@ import { REDIRECT_NAME } from './constant';
...
@@ -12,7 +12,7 @@ import { REDIRECT_NAME } from './constant';
// app router
// app router
const
router
=
createRouter
({
const
router
=
createRouter
({
history
:
createWebHashHistory
(),
history
:
createWebHashHistory
(),
routes
:
basicRoutes
as
RouteRecordRaw
[],
routes
:
(
basicRoutes
as
unknown
)
as
RouteRecordRaw
[],
strict
:
true
,
strict
:
true
,
scrollBehavior
:
scrollBehavior
,
scrollBehavior
:
scrollBehavior
,
});
});
...
...
src/views/sys/login/RegisterForm.vue
浏览文件 @
9a710296
...
@@ -54,7 +54,7 @@
...
@@ -54,7 +54,7 @@
<
script
lang=
"ts"
>
<
script
lang=
"ts"
>
import
{
defineComponent
,
reactive
,
ref
}
from
'
vue
'
;
import
{
defineComponent
,
reactive
,
ref
}
from
'
vue
'
;
import
{
Form
,
Input
,
Button
,
Divider
,
Checkbox
}
from
'
ant-design-vue
'
;
import
{
Form
,
Input
,
Button
,
Checkbox
}
from
'
ant-design-vue
'
;
import
{
StrengthMeter
}
from
'
/@/components/StrengthMeter
'
;
import
{
StrengthMeter
}
from
'
/@/components/StrengthMeter
'
;
import
{
CountdownInput
}
from
'
/@/components/CountDown
'
;
import
{
CountdownInput
}
from
'
/@/components/CountDown
'
;
...
@@ -68,7 +68,6 @@
...
@@ -68,7 +68,6 @@
Form
,
Form
,
FormItem
:
Form
.
Item
,
FormItem
:
Form
.
Item
,
Input
,
Input
,
Divider
,
InputPassword
:
Input
.
Password
,
InputPassword
:
Input
.
Password
,
Checkbox
,
Checkbox
,
StrengthMeter
,
StrengthMeter
,
...
...
yarn.lock
浏览文件 @
9a710296
...
@@ -1112,10 +1112,10 @@
...
@@ -1112,10 +1112,10 @@
dependencies:
dependencies:
cross-fetch "^3.0.6"
cross-fetch "^3.0.6"
"@iconify/json@^1.1.30
5
":
"@iconify/json@^1.1.30
6
":
version "1.1.30
5
"
version "1.1.30
6
"
resolved "https://registry.npmjs.org/@iconify/json/-/json-1.1.30
5.tgz#a23ae3a635167ee88fb41eeab72adbc094a22657
"
resolved "https://registry.npmjs.org/@iconify/json/-/json-1.1.30
6.tgz#cad12ad858a61689009c12d3d2df0fde6a202bb9
"
integrity sha512-
9zV2MHpP01Qdq6CBEszb9oOahsvLY+f2D3vbtOv22tPgopz2F4Uuzl/TB6+zOuQDohCVsGJzKuU5K6gjrM4P5
Q==
integrity sha512-
OT1H/non+J8i9BBery8VhXn2JJeUMr8iKA166wsW74UWgez2HsPnkNNdtQmZxIuAyL6FuHQ+WvDi18uD9eAo0
Q==
"@intlify/core-base@9.0.0-beta.16":
"@intlify/core-base@9.0.0-beta.16":
version "9.0.0-beta.16"
version "9.0.0-beta.16"
...
@@ -5933,11 +5933,16 @@ locate-path@^6.0.0:
...
@@ -5933,11 +5933,16 @@ locate-path@^6.0.0:
dependencies:
dependencies:
p-locate "^5.0.0"
p-locate "^5.0.0"
lodash-es@^4.17.15
, lodash-es@^4.17.20
:
lodash-es@^4.17.15:
version "4.17.20"
version "4.17.20"
resolved "https://registry.npmjs.org/lodash-es/-/lodash-es-4.17.20.tgz#29f6332eefc60e849f869c264bc71126ad61e8f7"
resolved "https://registry.npmjs.org/lodash-es/-/lodash-es-4.17.20.tgz#29f6332eefc60e849f869c264bc71126ad61e8f7"
integrity sha512-JD1COMZsq8maT6mnuz1UMV0jvYD0E0aUsSOdrr1/nAG3dhqQXwRRgeW0cSqH1U43INKcqxaiVIQNOUDld7gRDA==
integrity sha512-JD1COMZsq8maT6mnuz1UMV0jvYD0E0aUsSOdrr1/nAG3dhqQXwRRgeW0cSqH1U43INKcqxaiVIQNOUDld7gRDA==
lodash-es@^4.17.21:
version "4.17.21"
resolved "https://registry.npmjs.org/lodash-es/-/lodash-es-4.17.21.tgz#43e626c46e6591b7750beb2b50117390c609e3ee"
integrity sha512-mKnC+QJ9pWVzv+C4/U3rRsHapFfHvQFoFB92e52xeyGMcX6/OlIl78je1u8vePzYZSkkogMPJ2yjxxsb89cxyw==
lodash._reinterpolate@^3.0.0:
lodash._reinterpolate@^3.0.0:
version "3.0.0"
version "3.0.0"
resolved "https://registry.npmjs.org/lodash._reinterpolate/-/lodash._reinterpolate-3.0.0.tgz#0ccf2d89166af03b3663c796538b75ac6e114d9d"
resolved "https://registry.npmjs.org/lodash._reinterpolate/-/lodash._reinterpolate-3.0.0.tgz#0ccf2d89166af03b3663c796538b75ac6e114d9d"
...
@@ -9219,10 +9224,10 @@ vite-plugin-html@^2.0.0:
...
@@ -9219,10 +9224,10 @@ vite-plugin-html@^2.0.0:
fs-extra "^9.1.0"
fs-extra "^9.1.0"
html-minifier-terser "^5.1.1"
html-minifier-terser "^5.1.1"
vite-plugin-imagemin@^0.2.
6
:
vite-plugin-imagemin@^0.2.
7
:
version "0.2.
6
"
version "0.2.
7
"
resolved "https://registry.npmjs.org/vite-plugin-imagemin/-/vite-plugin-imagemin-0.2.
6.tgz#e8c3f2e4dcd9c8017d5624b52868bbfa60374d0b
"
resolved "https://registry.npmjs.org/vite-plugin-imagemin/-/vite-plugin-imagemin-0.2.
7.tgz#74b4a5e00e9ebef241e6bcd1c7eddd61e833614c
"
integrity sha512-
fnMFMQjQGYdvIEkISkVawFiyttgfjcAzBbDDVR2ThSnV4NHhCh8Y3WuduyH1kpEJLdJ4H83vP+94CkJZy7RP9Q
==
integrity sha512-
WRHnZ1QATluxqUNpOyFUtShLm+X+FfVoP6ZBcVqeaFU9EmmhR/Bp6TuqWP8jufRyy4lzprW8nxaRUwPD8ZOxYA
==
dependencies:
dependencies:
"@types/imagemin" "^7.0.0"
"@types/imagemin" "^7.0.0"
"@types/imagemin-gifsicle" "^7.0.0"
"@types/imagemin-gifsicle" "^7.0.0"
...
@@ -9232,7 +9237,7 @@ vite-plugin-imagemin@^0.2.6:
...
@@ -9232,7 +9237,7 @@ vite-plugin-imagemin@^0.2.6:
"@types/imagemin-svgo" "^8.0.0"
"@types/imagemin-svgo" "^8.0.0"
"@types/imagemin-webp" "^5.1.1"
"@types/imagemin-webp" "^5.1.1"
chalk "^4.1.0"
chalk "^4.1.0"
debug "^4.3.
1
"
debug "^4.3.
2
"
fs-extra "^9.1.0"
fs-extra "^9.1.0"
imagemin "^7.0.1"
imagemin "^7.0.1"
imagemin-gifsicle "^7.0.0"
imagemin-gifsicle "^7.0.0"
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录