|
|
@@ -7,7 +7,7 @@ export default function (context) {
|
|
|
|
|
|
token = store.state.token;
|
|
|
|
|
|
- console.log('token', token);
|
|
|
+ // console.log('token', token);
|
|
|
|
|
|
// console.log("cookies", cook);
|
|
|
//在服务端
|
|
|
@@ -19,9 +19,9 @@ export default function (context) {
|
|
|
path = route.path;
|
|
|
}
|
|
|
|
|
|
- console.log("path:"+path);
|
|
|
+ // console.log("path:"+path);
|
|
|
let mainPath = path.split("?")[0];
|
|
|
- console.log('mainPath', mainPath);
|
|
|
+ // console.log('mainPath', mainPath);
|
|
|
|
|
|
if(mainPath === "/setToken"){
|
|
|
try{
|
|
|
@@ -40,7 +40,7 @@ export default function (context) {
|
|
|
obj[params[i].split("=")[0]] = params[i].split("=")[1];
|
|
|
|
|
|
}
|
|
|
- console.log('obj', obj);
|
|
|
+ // console.log('obj', obj);
|
|
|
let new_token = obj['token'];
|
|
|
let origin_path = obj['origin_path'];
|
|
|
let user = {id: obj['id'], name: obj['name'], phone: obj['phone']};
|