Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
micro-system
/
system
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit 68cc569a
authored
Nov 10, 2020
by
胡悦
Browse Files
Options
Browse Files
Tag
Download
Plain Diff
Merge branch 'master' of 192.168.3.233:micro-system/system
2 parents
29731390
e657e1e8
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
8 additions
and
5 deletions
src/App.vue
src/utils/checkStatus.js
src/utils/http.js
src/views/menuManage/index.vue
src/App.vue
View file @
68cc569
...
@@ -36,7 +36,6 @@ export default {
...
@@ -36,7 +36,6 @@ export default {
methods
:
{
methods
:
{
...
mapMutations
([
'updateBaseURL'
]),
...
mapMutations
([
'updateBaseURL'
]),
goToPage
(
path
)
{
goToPage
(
path
)
{
console
.
log
(
this
.
$root
.
parentRouter
);
this
.
$root
.
parentRouter
.
push
(
path
);
this
.
$root
.
parentRouter
.
push
(
path
);
}
}
},
},
...
...
src/utils/checkStatus.js
View file @
68cc569
...
@@ -3,8 +3,6 @@ import Vue from 'vue';
...
@@ -3,8 +3,6 @@ import Vue from 'vue';
import
{
Message
}
from
'element-ui'
;
import
{
Message
}
from
'element-ui'
;
import
{
debounce
}
from
'utils/tools'
;
import
{
debounce
}
from
'utils/tools'
;
Vue
.
use
(
Message
);
const
error
=
debounce
((
msg
,
getToken
)
=>
{
const
error
=
debounce
((
msg
,
getToken
)
=>
{
if
(
window
.
__POWERED_BY_QIANKUN__
)
{
if
(
window
.
__POWERED_BY_QIANKUN__
)
{
let
stateRes
=
{
let
stateRes
=
{
...
...
src/utils/http.js
View file @
68cc569
...
@@ -27,7 +27,11 @@ instance.interceptors.request.use(config => {
...
@@ -27,7 +27,11 @@ instance.interceptors.request.use(config => {
/** 添加响应拦截器 **/
/** 添加响应拦截器 **/
instance
.
interceptors
.
response
.
use
(
response
=>
{
instance
.
interceptors
.
response
.
use
(
response
=>
{
showLoading
(
false
);
showLoading
(
false
);
const
serverCode
=
response
.
data
.
code
;
const
serverCode
=
response
.
data
.
code
,
token
=
response
.
headers
[
'authorization'
];
if
(
token
||
token
===
''
)
{
localStorage
.
setItem
(
'token'
,
token
);
}
if
(
serverCode
===
200
||
response
.
status
===
200
)
{
if
(
serverCode
===
200
||
response
.
status
===
200
)
{
if
(
serverCode
!==
200
)
{
if
(
serverCode
!==
200
)
{
checkStatus
(
serverCode
);
checkStatus
(
serverCode
);
...
@@ -98,7 +102,7 @@ const getBaseUrl = () => {
...
@@ -98,7 +102,7 @@ const getBaseUrl = () => {
if
(
resData
)
{
if
(
resData
)
{
const
resBaseURL
=
resData
.
axios
.
baseURL
;
const
resBaseURL
=
resData
.
axios
.
baseURL
;
store
.
commit
(
'updateBaseURL'
,
resBaseURL
);
store
.
commit
(
'updateBaseURL'
,
resBaseURL
);
baseFlag
=
!
!
resBaseURL
;
baseFlag
=
!
resBaseURL
;
resolve
(
resBaseURL
);
resolve
(
resBaseURL
);
}
else
{
}
else
{
baseFlag
=
true
;
baseFlag
=
true
;
...
...
src/views/menuManage/index.vue
View file @
68cc569
...
@@ -292,6 +292,7 @@ export default {
...
@@ -292,6 +292,7 @@ export default {
message
:
'操作成功!'
message
:
'操作成功!'
})
})
this
.
handleClose
()
this
.
handleClose
()
this
.
$root
.
parentVuex
.
dispatch
(
'menu/updateMenu'
,
params
)
if
(
params
.
parentId
)
{
if
(
params
.
parentId
)
{
getMenuChildren
({
parentId
:
params
.
parentId
}).
then
(
res
=>
{
getMenuChildren
({
parentId
:
params
.
parentId
}).
then
(
res
=>
{
this
.
$set
(
this
.
$refs
.
menuTable
.
store
.
states
.
lazyTreeNodeMap
,
this
.
menuForm
.
ppId
,
res
.
data
)
this
.
$set
(
this
.
$refs
.
menuTable
.
store
.
states
.
lazyTreeNodeMap
,
this
.
menuForm
.
ppId
,
res
.
data
)
...
@@ -400,6 +401,7 @@ export default {
...
@@ -400,6 +401,7 @@ export default {
type
:
'success'
,
type
:
'success'
,
message
:
'删除成功!'
message
:
'删除成功!'
})
})
this
.
$root
.
parentVuex
.
dispatch
(
'menu/updateMenu'
,
row
.
id
);
if
(
row
.
parentId
==
0
)
{
if
(
row
.
parentId
==
0
)
{
this
.
getList
()
this
.
getList
()
}
else
{
}
else
{
...
...
Write
Preview
Markdown
is supported
Attach a file
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to post a comment