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
a25db879
authored
2023-03-24 17:06:59 +0800
by
任超
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
style:code配置化的完成
1 parent
c7c6dddb
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
4 additions
and
4 deletions
public/config.json
src/permission.js
src/views/loginjg/index.vue
src/views/loginsb/index.vue
src/views/system/menus/index.vue
src/views/system/roles/index.vue
public/config.json
View file @
a25db87
{
"TITLE"
:
"汉中市数据上报系统"
,
"THEME"
:
"sb"
,
"CODE"
:
"BDCSBPT"
,
"SERVERAPI"
:
"/bdcsjsb"
,
"MANAGEMENTAPI"
:
"http://192.168.2.38:8090/management"
}
\ No newline at end of file
...
...
src/permission.js
View file @
a25db87
/*
* @Description:
* @Autor: renchao
* @LastEditTime: 2023-03-2
3 16:37:20
* @LastEditTime: 2023-03-2
4 16:59:29
*/
import
Vue
from
'vue'
import
router
from
"./router"
;
...
...
@@ -25,7 +25,7 @@ router.beforeEach(async (to, from, next) => {
localStorage
.
removeItem
(
"token"
);
next
();
}
else
{
let
code
=
Vue
.
prototype
.
BASE_API
.
THEME
==
"sb"
?
"BDCSBPT"
:
"BDCJGPT"
let
code
=
Vue
.
prototype
.
BASE_API
.
CODE
//判断token是否存在
const
hasToken
=
localStorage
.
getItem
(
"token"
);
if
(
hasToken
)
{
...
...
src/views/loginjg/index.vue
View file @
a25db87
...
...
@@ -22,7 +22,6 @@
</div>
</
template
>
<
script
>
import
{
getMenuInfo
}
from
"@/api/user"
;
import
{
loginIn
}
from
"@/api/login.js"
;
export
default
{
name
:
"jgLogin"
,
...
...
src/views/loginsb/index.vue
View file @
a25db87
...
...
@@ -108,7 +108,7 @@ export default {
if
(
valid
)
{
let
res
=
await
loginIn
(
self
.
user
.
account
,
self
.
user
.
password
)
if
(
res
.
status
==
1
)
{
let
code
=
this
.
BASE_API
.
THEME
==
"sb"
?
"BDCSBPT"
:
"BDCJGPT"
let
code
=
this
.
BASE_API
.
CODE
;
localStorage
.
setItem
(
"token"
,
`Bearer
${
res
.
content
}
`
);
const
{
result
:
getMenuData
}
=
(
await
getMenuInfo
(
code
))
||
[];
let
path1
=
JSON
.
parse
(
getMenuData
[
0
].
metadata
)?.
path
+
'/'
+
JSON
.
parse
(
getMenuData
[
0
].
children
[
0
].
metadata
)?.
path
...
...
src/views/system/menus/index.vue
View file @
a25db87
This diff is collapsed.
Click to expand it.
src/views/system/roles/index.vue
View file @
a25db87
This diff is collapsed.
Click to expand it.
Please
register
or
sign in
to post a comment