xiaodai2022 vor 2 Jahren
Ursprung
Commit
10b0a466d1

+ 7 - 3
src/App.vue

@@ -37,7 +37,7 @@ export default {
       this.$store
         .dispatch("user/dingUserInfor", model)
         .then(async (res) => {
-          if (res === "success" ) {
+          if (res === "success") {
             await this.getMenu();
           } else {
             await this.logout();
@@ -53,13 +53,17 @@ export default {
         .then(async (res) => {
           if (res === "noToken") {
             await this.logout();
-          } else if (res === "success"|| res === "success-dataV") {
+          } else if (res === "success" || res === "success-dataV") {
             if (
               this.$route.path === "/loadingPage" ||
               this.$route.path === "/" ||
               this.$route.path === "/login"
             ) {
-              window.vm.$router.replace("/welcome");
+              if (res === "success-dataV") {
+                window.vm.$router.replace("/bigScreen/datavScr");
+              } else {
+                window.vm.$router.replace("/welcome");
+              }
             }
           } else {
             await this.logout();

+ 10 - 2
src/components/globalComponents/file-upload/main.vue

@@ -16,12 +16,14 @@
 <script>
 import urlConfig from "@/apis/url-config";
 import { getToken } from "@/utils/auth";
+import resToken from "@/mixins/resToken";
 //Uploadcondition 用于判断个性化文件 //返回 false 就不会上传文件
 //UploadErrorEvent 上传成功
 //UploadErrorEvent 上传失败
 
 export default {
   name: "fileUpload",
+   mixins: [resToken],
   props: {
     //@reject 默认值
     accept: String, //上传文件类型
@@ -52,7 +54,7 @@ export default {
       let that = this;
       let inputDOM1 = that.$refs.inputer;
       const files = inputDOM1.files;
-      console.log(files)
+      console.log(files);
       let length = files.length;
       if (length === 0) return;
       that.loading = that.$loading({
@@ -67,7 +69,7 @@ export default {
           that.$refs.inputer.value = "";
         } else {
           let str = await that.httpupLoad(files, i);
-          console.log(i,str)
+          console.log(i, str);
           if (str === "error") {
             that.$emit("UploadErrorEvent");
           } else if (str === "break") {
@@ -100,12 +102,18 @@ export default {
                     url: `${that.imgAPI}storage/${url}`,
                     name: name,
                   });
+                } else if (code >= 100 && code <= 104) {
+                  await this.logout();
                 } else {
                   resolve({
                     url: `noToken`,
                     name: "",
                   });
                 }
+                if (code >= 100 && code <= 104) {
+                } else {
+                  this.$message.warning(message);
+                }
               } else {
                 reject();
               }

+ 1 - 1
src/views/purchaseIn/recovery/index.vue

@@ -159,7 +159,7 @@ export default {
       parmValue: {
         infoNo: "",
         bidNo: "",
-        // is_own: "1",
+        is_own: "1",
         page: 1, // 页码
         size: 15, // 每页显示条数
       },