XiaBx il y a 3 ans
Parent
commit
15cf1c242a
3 fichiers modifiés avec 4 ajouts et 3 suppressions
  1. 1 1
      src/api/axios.js
  2. 2 1
      src/api/config.js
  3. 1 1
      src/view/yun.vue

+ 1 - 1
src/api/axios.js

@@ -33,7 +33,7 @@ instance.interceptors.response.use(
       res.data.code === 10023 ||
       res.data.code === 10035
     ) {
-      Toast("重新登录中");
+      //Toast("重新登录中");
       await refreshToken();
       return axios(res.config);
     }

+ 2 - 1
src/api/config.js

@@ -10,7 +10,8 @@ export async function login() {
   const timestamp = parseInt(new Date().valueOf() / 1000);
   let data = {
     timestamp,
-    send_order_id: Vue.prototype.sendid || localStorage.getItem("sendid") || ''
+    send_order_id: Vue.prototype.sendid || localStorage.getItem("sendid") || '',
+    form_url: location.href
   };
   let ret = await userLogin(data);
   if (ret) {

+ 1 - 1
src/view/yun.vue

@@ -4,7 +4,7 @@
 
 <script>
 import { Yun } from "./namespace";
-import { getYun } from "../api";
+import { getYun,login } from "../api";
 import Vue from 'vue';
 export default {
   name: Yun.name,