Skip to content
  • P
    Projects
  • G
    Groups
  • S
    Snippets
  • Help

肖康 / cloudSystem

  • This project
    • Loading...
  • Sign in
Go to a project
  • Project
  • Repository
  • Issues 0
  • Merge Requests 0
  • Pipelines
  • Wiki
  • Snippets
  • Settings
  • Activity
  • Graph
  • Charts
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
  • Files
  • Commits
  • Branches
  • Tags
  • Contributors
  • Graph
  • Compare
  • Charts
Commit cf90e32a authored 3 years ago by liangjianmin's avatar liangjianmin
Browse files
Options
  • _('Browse Files')
  • Download
  • Email Patches
  • Plain Diff

js

parent ac9c65bb
Show whitespace changes
Inline Side-by-side
Showing with 2 additions and 6 deletions
  • src/ajax/index.js
  • src/components/menu.vue
src/ajax/index.js
View file @ cf90e32a
...@@ -15,7 +15,7 @@ export let NODE_ENVS = "/"; ...@@ -15,7 +15,7 @@ export let NODE_ENVS = "/";
switch (envs) { switch (envs) {
case 'development': case 'development':
//开发环境 //开发环境
NODE_ENVS = 'http://192.168.2.164:8080'; NODE_ENVS = 'http://192.168.2.142:8080';
break; break;
case 'test': case 'test':
//测试环境 //测试环境
......
This diff is collapsed. Click to expand it.
src/components/menu.vue
View file @ cf90e32a
...@@ -213,7 +213,7 @@ ...@@ -213,7 +213,7 @@
} else { } else {
this.$http('get', "/api/user/getuserinfo").then(res => { this.$http('get', "/api/user/getuserinfo").then(res => {
this.userinfo = res.data; this.userinfo = res.data;
if(res.data){ if (res.data) {
sessionStorage.setItem('userInfox', JSON.stringify(res.data)); sessionStorage.setItem('userInfox', JSON.stringify(res.data));
} }
...@@ -301,13 +301,9 @@ ...@@ -301,13 +301,9 @@
logout() { logout() {
this.$http('post', "/auth/logout").then(res => { this.$http('post', "/auth/logout").then(res => {
Util.delCookie('token'); Util.delCookie('token');
if (res.err_code === 0) {
window.location.href = '/#/login'; window.location.href = '/#/login';
sessionStorage.removeItem('userInfox') sessionStorage.removeItem('userInfox')
history.go(0); history.go(0);
} else {
Message(res.err_msg);
}
}).catch(err => { }).catch(err => {
console.log(err.message); console.log(err.message);
}) })
......
This diff is collapsed. Click to expand it.
  • Write
  • Preview
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment