scorpioyq 2 년 전
부모
커밋
e14695f3e2
4개의 변경된 파일61개의 추가작업 그리고 59개의 파일을 삭제
  1. 3 0
      src/views/invest/components/left.vue
  2. 0 1
      src/views/invest/components/years.vue
  3. 1 1
      src/views/invest/index.vue
  4. 57 57
      vite.config.js

+ 3 - 0
src/views/invest/components/left.vue

@@ -86,6 +86,9 @@ export default {
           if (this.user.info.viewStage !== 1) {
             this.active = 0
             this.change(0)
+          } else {
+            this.active = -1
+            this.$emit('change', null)
           }
         } else {
           this.$message.error(res.msg)

+ 0 - 1
src/views/invest/components/years.vue

@@ -95,7 +95,6 @@ export default {
   watch: {
     deptId: {
       handler(val) {
-        console.log(val)
         this.load()
       },
       immediate: true

+ 1 - 1
src/views/invest/index.vue

@@ -162,7 +162,7 @@ export default {
           .then(res => {
             if (res.code === 200) {
               this.hasChildrenDept = res.data.hasChildren
-              // this.dept = res.data.id
+              this.dept = res.data.id
             }
           })
     },

+ 57 - 57
vite.config.js

@@ -1,4 +1,4 @@
-import { defineConfig } from 'vite'
+import {defineConfig} from 'vite'
 import vue from '@vitejs/plugin-vue'
 import Pages from 'vite-plugin-pages'
 import Layouts from 'vite-plugin-vue-layouts'
@@ -6,63 +6,63 @@ import path from 'path'
 
 // https://vitejs.dev/config/
 export default defineConfig({
-  plugins: [
-    vue(),
-    Pages({
-      dirs: [
-        {
-          dir: 'src/page',
-          baseRoute: ''
-        },
-        {
-          dir: 'src/views',
-          baseRoute: ''
+    plugins: [
+        vue(),
+        Pages({
+            dirs: [
+                {
+                    dir: 'src/page',
+                    baseRoute: ''
+                },
+                {
+                    dir: 'src/views',
+                    baseRoute: ''
+                }
+            ],
+            exclude: [
+                '**/components/*.vue',
+                '**/component/*.vue',
+                '**/component/**/*'
+            ]
+        }),
+        Layouts({
+            layoutsDirs: 'src/layout',
+            defaultLayout: 'index'
+        })
+    ],
+    resolve: {
+        alias: {
+            '@': path.resolve(path.resolve(), 'src')
         }
-      ],
-      exclude: [
-        '**/components/*.vue',
-        '**/component/*.vue',
-        '**/component/**/*'
-      ]
-    }),
-    Layouts({
-      layoutsDirs: 'src/layout',
-      defaultLayout: 'index'
-    })
-  ],
-  resolve: {
-    alias: {
-      '@': path.resolve(path.resolve(), 'src')
-    }
-  },
-  minify: 'terser',
-  build: {
-    chunkSizeWarningLimit: 1500,
-    rollupOptions: {
-      output: {
-        manualChunks(id) {
-          if (id.includes('node_modules')) {
-            return id
-              .toString()
-              .split('node_modules/')[1]
-              .split('/')[0]
-              .toString()
-          }
+    },
+    minify: 'terser',
+    build: {
+        chunkSizeWarningLimit: 1500,
+        rollupOptions: {
+            output: {
+                manualChunks(id) {
+                    if (id.includes('node_modules')) {
+                        return id
+                            .toString()
+                            .split('node_modules/')[1]
+                            .split('/')[0]
+                            .toString()
+                    }
+                }
+            }
+        }
+    },
+    server: {
+        open: true,
+        proxy: {
+            '/api': {
+                // 正式环境地址
+                target: 'https://dev.wutongresearch.club/api',
+                // target: 'https://prod.wutongshucloud.com/api',
+                // target: 'http://192.168.31.181:8110',
+                changeOrigin: true,
+                rewrite: path => path.replace(/^\/api/, '')
+            }
         }
-      }
-    }
-  },
-  server: {
-    open: true,
-    proxy: {
-      '/api': {
-        // 正式环境地址
-        // target: 'https://dev.wutongresearch.club/api',
-        target: 'https://prod.wutongshucloud.com/api',
-        // target: 'http://192.168.31.181:8110',
-        changeOrigin: true,
-        rewrite: path => path.replace(/^\/api/, '')
-      }
     }
-  }
 })