Skip to content
Toggle navigation
Toggle navigation
This project
Loading...
Sign in
bdc
/
bdcjg-web
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Wiki
Network
Create a new issue
Builds
Commits
Issue Boards
Files
Commits
Network
Compare
Branches
Tags
bb6ca1ce
authored
2023-03-27 16:55:24 +0800
by
renchao@pashanhoo.com
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
style:权限修改
1 parent
ab1bccb8
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
9 additions
and
13 deletions
src/layout1/components/Navbar.vue
src/main.js
src/permission.js
src/layout1/components/Navbar.vue
View file @
bb6ca1c
...
...
@@ -6,14 +6,12 @@
<h4>
不动产登记上报系统
</h4>
</div>
<div
class=
"right-menu"
>
<el-dropdown
class=
"avatar-container right-menu-item hover-effect"
trigger=
"hover"
>
<div
class=
"user"
>
{{
userName
}}
<span
@
click=
"onCancel"
>
<i
class=
"el-icon-switch-button"
></i>
</span>
</div>
</el-dropdown>
<div
class=
"user"
>
{{
userName
}}
<span
@
click=
"onCancel"
>
<i
class=
"el-icon-switch-button"
></i>
</span>
</div>
</div>
</div>
</div>
...
...
src/main.js
View file @
bb6ca1c
...
...
@@ -2,7 +2,7 @@
* @Author: yangwei
* @Date: 2023-01-16 09:10:12
* @LastEditors: Please set LastEditors
* @LastEditTime: 2023-03-2
3 15:15:02
* @LastEditTime: 2023-03-2
7 16:54:34
* @FilePath: \bdcjg-web\src\main.js
* @Description:
*
...
...
@@ -19,7 +19,6 @@ import mixin from '@/utils/mixin/theme.js'
import
axios
from
'axios'
import
dataV
from
'@jiaminghi/data-view'
;
import
*
as
echarts
from
"echarts"
import
{
startLoadingAddCount
,
endLoadingSubCount
}
from
'./utils/requestLoading'
Vue
.
mixin
(
mixin
)
import
'./directive/vxe-table'
...
...
@@ -68,4 +67,5 @@ axios.get("./config.json")
store
,
render
:
h
=>
h
(
App
)
})
window
.
document
.
documentElement
.
setAttribute
(
"data-theme"
,
'blue'
);
})
\ No newline at end of file
...
...
src/permission.js
View file @
bb6ca1c
...
...
@@ -20,9 +20,7 @@ router.beforeEach(async (to, from, next) => {
localStorage
.
removeItem
(
"token"
);
next
();
}
else
{
setTimeout
(()
=>
{
window
.
document
.
documentElement
.
setAttribute
(
"data-theme"
,
'blue'
);
},
20
)
let
code
=
Vue
.
prototype
.
BASE_API
.
CODE
//判断token是否存在
const
hasToken
=
localStorage
.
getItem
(
"token"
);
...
...
Please
register
or
sign in
to post a comment