Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
gyf5267218
vue-element-admin
提交
50d09574
V
vue-element-admin
项目概览
gyf5267218
/
vue-element-admin
与 Fork 源项目一致
从无法访问的项目Fork
通知
4
Star
0
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
V
vue-element-admin
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
前往新版Gitcode,体验更适合开发者的 AI 搜索 >>
提交
50d09574
编写于
4月 18, 2019
作者:
P
Pan
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
perf: optimize some small details
上级
806f960a
变更
7
隐藏空白更改
内联
并排
Showing
7 changed file
with
13 addition
and
21 deletion
+13
-21
src/api/user.js
src/api/user.js
+0
-1
src/layout/components/Navbar.vue
src/layout/components/Navbar.vue
+3
-1
src/store/getters.js
src/store/getters.js
+0
-1
src/store/modules/permission.js
src/store/modules/permission.js
+1
-1
src/utils/validate.js
src/utils/validate.js
+1
-0
src/views/error-page/404.vue
src/views/error-page/404.vue
+7
-16
vue.config.js
vue.config.js
+1
-1
未找到文件。
src/api/user.js
浏览文件 @
50d09574
...
...
@@ -22,4 +22,3 @@ export function logout() {
method
:
'
post
'
})
}
src/layout/components/Navbar.vue
浏览文件 @
50d09574
...
...
@@ -36,6 +36,9 @@
{{ $t('navbar.github') }}
</el-dropdown-item>
</a>
<a
target=
"_blank"
href=
"https://panjiachen.github.io/vue-element-admin-site/#/"
>
<el-dropdown-item>
Docs
</el-dropdown-item>
</a>
<el-dropdown-item
divided
>
<span
style=
"display:block;"
@
click=
"logout"
>
{{ $t('navbar.logOut') }}
</span>
</el-dropdown-item>
...
...
@@ -68,7 +71,6 @@ export default {
computed
:
{
...
mapGetters
([
'
sidebar
'
,
'
name
'
,
'
avatar
'
,
'
device
'
])
...
...
src/store/getters.js
浏览文件 @
50d09574
...
...
@@ -11,7 +11,6 @@ const getters = {
introduction
:
state
=>
state
.
user
.
introduction
,
roles
:
state
=>
state
.
user
.
roles
,
permission_routes
:
state
=>
state
.
permission
.
routes
,
addRoutes
:
state
=>
state
.
permission
.
addRoutes
,
errorLogs
:
state
=>
state
.
errorLog
.
logs
}
export
default
getters
src/store/modules/permission.js
浏览文件 @
50d09574
...
...
@@ -51,7 +51,7 @@ const actions = {
return
new
Promise
(
resolve
=>
{
let
accessedRoutes
if
(
roles
.
includes
(
'
admin
'
))
{
accessedRoutes
=
asyncRoutes
accessedRoutes
=
asyncRoutes
||
[]
}
else
{
accessedRoutes
=
filterAsyncRoutes
(
asyncRoutes
,
roles
)
}
...
...
src/utils/validate.js
浏览文件 @
50d09574
/**
* Created by jiachenpan on 16/11/18.
*/
/**
* @param {string} path
* @returns {Boolean}
...
...
src/views/error-page/404.vue
浏览文件 @
50d09574
...
...
@@ -8,22 +8,13 @@
<img
class=
"pic-404__child right"
src=
"@/assets/404_images/404_cloud.png"
alt=
"404"
>
</div>
<div
class=
"bullshit"
>
<div
class=
"bullshit__oops"
>
OOPS!
<div
class=
"bullshit__oops"
>
OOPS!
</div>
<div
class=
"bullshit__info"
>
All rights reserved
<a
style=
"color:#20a0ff"
href=
"https://wallstreetcn.com"
target=
"_blank"
>
wallstreetcn
</a>
</div>
<div
class=
"bullshit__info"
>
版权所有
<a
class=
"link-type"
href=
"https://wallstreetcn.com"
target=
"_blank"
>
华尔街见闻
</a>
</div>
<div
class=
"bullshit__headline"
>
{{
message
}}
</div>
<div
class=
"bullshit__info"
>
请检查您输入的网址是否正确,请点击以下按钮返回主页或者发送错误报告
</div>
<router-link
to=
"/"
class=
"bullshit__return-home"
>
返回首页
</router-link>
<div
class=
"bullshit__headline"
>
{{
message
}}
</div>
<div
class=
"bullshit__info"
>
Please check that the URL you entered is correct, or click the button below to return to the homepage.
</div>
<a
href=
""
class=
"bullshit__return-home"
>
Back to home
</a>
</div>
</div>
</div>
...
...
@@ -35,7 +26,7 @@ export default {
name
:
'
Page404
'
,
computed
:
{
message
()
{
return
'
网管说这个页面你不能进...
...
'
return
'
The webmaster said that you can not enter this page
...
'
}
}
}
...
...
vue.config.js
浏览文件 @
50d09574
...
...
@@ -86,7 +86,7 @@ module.exports = {
.
end
()
config
// https://webpack.js.org/configuration/devtool/#development
// https://webpack.js.org/configuration/devtool/#development
.
when
(
process
.
env
.
NODE_ENV
===
'
development
'
,
config
=>
config
.
devtool
(
'
cheap-source-map
'
)
)
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录