scorpio 3 years ago
parent
commit
b4c183d470

+ 1 - 1
src/page/login.vue

@@ -165,7 +165,7 @@ export default {
   },
   created () {
     this.permission.cleanPermission()
-    this.dev = window.location.href.toString().indexOf('dev') > -1
+    this.dev = window.location.href.toString().indexOf('localhost') > -1
     removeToken()
     this.init()
   },

+ 0 - 2
src/views/home/component/authorize.vue

@@ -104,8 +104,6 @@ export default {
       }
       this.startTime = this.authorizeDate[0]
       this.endTime = this.authorizeDate[1]
-      console.log(this.fileList[0])
-      console.log(this.fileList.filter(sub => sub.type === '1'))
       const fileTmps = this.fileList.filter(sub => sub.type === '1').map(sub => {
         const item = { fileId: sub.id, startTime: this.startTime, endTime: this.endTime, status: sub.check }
         return item

+ 1 - 1
src/views/home/component/folder_list.vue

@@ -313,7 +313,7 @@ export default {
           this.fileData = res.data
           this.fileData.records = this.fileData.records.map(sub => {
             const item = sub
-            sub.type = this.check
+            sub.check = this.check
             return item
           })
         } else {

+ 1 - 1
src/views/home/component/item1.vue

@@ -41,7 +41,7 @@ export default {
   },
   methods: {
     change (res) {
-      this.item.type = res
+      this.item.check = res
       this.item.index = this.index
       this.$emit('change', this.item)
     }

+ 2 - 2
vite.config.js

@@ -34,8 +34,8 @@ export default defineConfig({
       '/api': {
         // 正式环境地址
         // target: 'https://dev.wutongresearch.club/api',
-        target: 'https://prod.wutongshucloud.com/api',
-        // target: 'http://192.168.31.181:8110',
+        // target: 'https://prod.wutongshucloud.com/api',
+        target: 'http://192.168.31.181:8110',
         changeOrigin: true,
         rewrite: (path) => path.replace(/^\/api/, '')
       }