scorpio 2 years ago
parent
commit
ca81b80a4e
4 changed files with 30 additions and 7 deletions
  1. 1 1
      src/layout/left.vue
  2. 15 0
      src/views/invest/components/left.vue
  3. 12 4
      src/views/invest/index.vue
  4. 2 2
      vite.config.js

+ 1 - 1
src/layout/left.vue

@@ -58,7 +58,7 @@ export default {
             {
               name: '公司资料',
               img: new URL('../assets/svg/icon1.svg', import.meta.url).href,
-              path: '/company'
+              path: '/components'
             }
           ]
         },

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

@@ -0,0 +1,15 @@
+<template>
+  <div>
+    <span>年度资金管理</span>
+  </div>
+</template>
+
+<script>
+export default {
+  name: 'left'
+}
+</script>
+
+<style scoped>
+
+</style>

+ 12 - 4
src/views/invest/index.vue

@@ -1,15 +1,23 @@
 <template>
-  <basic-container class='mt-10'>
-    <el-button>22</el-button>
-  </basic-container>
+  <div class='flex flex-center full-width'>
+    <div class='ml-10 mr-10 flex flex-center full-width'>
+      <basic-container style='width: 300px;padding: 0'>
+        <left/>
+      </basic-container>
+      <basic-container class='full-width ml-10'>
+        333
+      </basic-container>
+    </div>
+  </div>
 </template>
 
 <script>
 import BasicContainer from '@/components/basic-container/main.vue'
+import left from './components/left.vue'
 
 export default {
   name: 'index',
-  components: { BasicContainer }
+  components: { BasicContainer, left }
 }
 </script>
 

+ 2 - 2
vite.config.js

@@ -50,8 +50,8 @@ export default defineConfig({
     proxy: {
       '/api': {
         // 正式环境地址
-        // target: 'https://dev.wutongresearch.club/api',
-        target: 'https://prod.wutongshucloud.com/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/, '')