Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
D
dcxy-system
Project
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
姜雷
dcxy-system
Commits
9ae290f4
Commit
9ae290f4
authored
May 10, 2019
by
姜雷
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改为登录后强行刷新
parent
58815359
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
11 additions
and
13 deletions
+11
-13
babel.config.js
babel.config.js
+3
-3
index.vue
src/containers/login/index.vue
+6
-7
main.js
src/lib/main.js
+1
-1
main.js
src/main.js
+1
-1
index.js
src/store/index.js
+0
-1
No files found.
babel.config.js
View file @
9ae290f4
const
removeConsolePlugin
=
[];
const
removeConsolePlugin
=
[];
//
if (process.env.NODE_ENV === 'production') {
if
(
process
.
env
.
NODE_ENV
===
'production'
)
{
//
removeConsolePlugin.push('transform-remove-console');
removeConsolePlugin
.
push
(
'transform-remove-console'
);
//
}
}
module
.
exports
=
{
module
.
exports
=
{
presets
:
[
'@vue/app'
],
presets
:
[
'@vue/app'
],
...
...
src/containers/login/index.vue
View file @
9ae290f4
...
@@ -148,15 +148,14 @@ export default {
...
@@ -148,15 +148,14 @@ export default {
console
.
log
(
'login done'
);
console
.
log
(
'login done'
);
this
.
loading
=
false
;
this
.
loading
=
false
;
if
(
let
dashboardPage
=
userRoles
.
find
(
userRoles
.
find
(
item
=>
item
.
menuCode
===
process
.
env
.
VUE_APP_DASHBOARD_CODE
item
=>
item
.
menuCode
===
process
.
env
.
VUE_APP_DASHBOARD_CODE
)
&&
);
this
.
$router
.
options
.
base
===
'/'
if
(
dashboardPage
&&
this
.
$router
.
options
.
base
===
'/'
)
{
)
{
window
.
location
.
href
=
this
.
$router
.
push
({
name
:
'dashboard'
})
;
location
.
origin
+
'/'
+
dashboardPage
.
menuLink
;
}
else
{
}
else
{
this
.
$router
.
push
({
path
:
'/'
})
;
window
.
location
.
href
=
location
.
origin
;
}
}
})
})
.
catch
(
err
=>
{
.
catch
(
err
=>
{
...
...
src/lib/main.js
View file @
9ae290f4
...
@@ -23,6 +23,7 @@ class SystemShell {
...
@@ -23,6 +23,7 @@ class SystemShell {
this
.
storeModule
=
storeModule
;
this
.
storeModule
=
storeModule
;
this
.
mixinModule
=
mixinModule
;
this
.
mixinModule
=
mixinModule
;
this
.
utils
=
utilsModule
;
this
.
utils
=
utilsModule
;
this
.
createBaseFetch
=
createBaseFetch
;
}
}
createSystem
=
({
createSystem
=
({
basePath
=
'/'
,
basePath
=
'/'
,
...
@@ -71,6 +72,5 @@ class SystemShell {
...
@@ -71,6 +72,5 @@ class SystemShell {
});
});
return
app
;
return
app
;
};
};
createBaseFetch
=
createBaseFetch
;
}
}
export
default
new
SystemShell
();
export
default
new
SystemShell
();
src/main.js
View file @
9ae290f4
...
@@ -21,7 +21,7 @@ routeNameList.map(name => {
...
@@ -21,7 +21,7 @@ routeNameList.map(name => {
const
System
=
manageShell
.
default
;
const
System
=
manageShell
.
default
;
System
.
createSystem
({
export
default
System
.
createSystem
({
basePath
:
process
.
env
.
VUE_APP_BASE_URL
,
basePath
:
process
.
env
.
VUE_APP_BASE_URL
,
routers
:
allAasyncRouterMap
,
routers
:
allAasyncRouterMap
,
routeFilter
:
(
routes
,
allRoute
)
=>
{
routeFilter
:
(
routes
,
allRoute
)
=>
{
...
...
src/store/index.js
View file @
9ae290f4
...
@@ -4,7 +4,6 @@ import user from './modules/user/index';
...
@@ -4,7 +4,6 @@ import user from './modules/user/index';
import
customer
from
'./modules/customer/index'
;
import
customer
from
'./modules/customer/index'
;
Vue
.
use
(
Vuex
);
Vue
.
use
(
Vuex
);
console
.
log
(
'in store'
);
const
debug
=
process
.
env
.
NODE_ENV
!==
'production'
;
const
debug
=
process
.
env
.
NODE_ENV
!==
'production'
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
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 comment