diff --git a/App.vue b/App.vue
index c49f09d..17683ef 100644
--- a/App.vue
+++ b/App.vue
@@ -23,7 +23,7 @@
var href=location.href;
//不包含登录页和加载页
if(href.indexOf('/pages/login/login')==-1 && href.indexOf('/pages/login/loading')==-1){
- console.log('href='+href)
+ //console.log('href='+href)
//先做登录校验
//每次加载,增加一次对token的验证,直接调用用户中心的接口,如果token不对,这里会直接返回登录
//apiUserbasic.getUserInfo();
diff --git a/pages/index/index.vue b/pages/index/index.vue
index 2ae31ad..2fcb567 100644
--- a/pages/index/index.vue
+++ b/pages/index/index.vue
@@ -178,7 +178,6 @@
import apiQa from '@/api/modules/qa.js'
import apiMessage from '@/api/system/message.js'
import {toScore} from '@/utils/tools.js'
- import apiBoeCourse from '@/api/boe/course.js'
import apiUserGroup from "@/api/modules/usergroup.js";
import apiUserbasic from '@/api/boe/userbasic.js'
import apiOnceMedal from '@/api/phase2/onceMedal.js'
diff --git a/pages/resource/search(1).vue b/pages/resource/search(1).vue
deleted file mode 100644
index decc77c..0000000
--- a/pages/resource/search(1).vue
+++ /dev/null
@@ -1,1249 +0,0 @@
-
-
-
-
-
-
-
-
-
-
-
-
- {{item.con}}
-
-
-
-
-
-
-
-
-
-
- 搜索历史
-
-
-
-
-
-
- {{word}}
- {{word}}
-
-
-
-
- 热门搜索
-
-
- {{hw}}
-
-
-
-
-
-
-
-
-
- {{tag.text}}
-
-
-
-
-
-
-
-
- 录播
- 录播
- 录播
- 面授班
- 学习项目
-
-
-
-
-
-
-
-
-
- {{c.teachersName}}
-
-
-
-
-
-
- {{c.studys}}人学习
- {{converToScore(c.score)}}分
-
-
-
-
-
-
-
- 抱歉暂时没有找到相关内容,
-
- 是否要去“提个意见”呢
-
-
-
-
-
-
-
-
-
-
-
- {{tag.text}}
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- {{item.sysCreateTime.substring(0,10)}}
-
-
-
- {{ item.summary }}
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- 抱歉暂时没有找到相关内容,
-
- 是否要去“提个意见”呢
-
-
-
-
-
-
-
-
-
-
-
- {{tag.text}}
-
-
-
-
-
-
-
-
- [已解决]
- [待解决]
-
-
-
-
-
-
-
-
-
- {{item.sysCreateTime.substring(0,10)}}
-
-
-
-
- {{item.content }}
-
- 最佳回答:
- {{item.bestAnswer}}
-
-
-
-
-
-
-
-
-
-
-
-
-
- 抱歉暂时没有找到相关内容,
-
- 是否要去“提个意见”呢
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
diff --git a/store/modules/user.js b/store/modules/user.js
index 5f210a1..c850a13 100644
--- a/store/modules/user.js
+++ b/store/modules/user.js
@@ -1,7 +1,6 @@
import { getToken, setToken, removeToken } from '@/utils/token'
import app from '@/api/app.js'
import apiLogin from '@/api/login.js'
-import apiBoeLogin from '@/api/boe/login.js'
import apiMessage from '@/api/system/message.js'
import config from '@/config/index.js'
import apiUserbasic from '@/api/boe/userbasic.js'
@@ -133,10 +132,10 @@ const user = {
// 退出系统
LogOut({ commit, state }) {
return new Promise((resolve, reject) => {
- //apiBoeLogin.logout();
+
commit('SET_PERMISSIONS', [])
removeToken()
- //resolve()
+ //resolve()
//apiLogin.logout()
apiUserbasic.logout().then((res) => {
resolve(res)
diff --git a/utils/token.js b/utils/token.js
index d2e5ea8..1d090c6 100644
--- a/utils/token.js
+++ b/utils/token.js
@@ -34,11 +34,12 @@ export function setToken(token) {
}
export function removeToken() {
- uni.removeStorageSync(TOKEN_KEY);
- uni.removeStorageSync('returnUrl');
- uni.setStorageSync('oh','quit');
- uni.removeStorageSync('userInfo');
- uni.removeStorageSync('inner');
+ // uni.removeStorageSync(TOKEN_KEY);
+ // uni.removeStorageSync('returnUrl');
+ // //uni.setStorageSync('oh','quit');
+ // uni.removeStorageSync('userInfo');
+ // uni.removeStorageSync('inner');
+ uni.clearStorageSync();
// #ifdef H5
document.cookie = "token=; expires=Thu, 01 Jan 1970 00:00:00 UTC; path=/;";
document.cookie = "userInfo=; expires=Thu, 01 Jan 1970 00:00:00 UTC; path=/;";
diff --git a/utils/tologin.js b/utils/tologin.js
index 05d6c3d..2247aa9 100644
--- a/utils/tologin.js
+++ b/utils/tologin.js
@@ -1,4 +1,5 @@
import config from '@/config/index.js'
+import {removeToken} from '@/utils/token.js'
export function toLogin(ajaxUrl) {
let pageUrl=location.href;
@@ -14,6 +15,8 @@ export function toLogin(ajaxUrl) {
if(ajaxUrl && ajaxUrl.indexOf('/xboe/portal/init')>-1){
return;
}
+ //跳转到登录,先把本地的登录信息清空
+ //removeToken();
//http://localhost:8081/mobile/pages/study/courseStudy?id=1028700304503054336
if(pageUrl.indexOf('returnUrl')>-1){
console.log(pageUrl,'to pageUrl')