YY 2 năm trước cách đây
mục cha
commit
91aeec43c2
2 tập tin đã thay đổi với 10 bổ sung17 xóa
  1. 1 8
      src/views/user/expert/detail.vue
  2. 9 9
      vite.config.ts

+ 1 - 8
src/views/user/expert/detail.vue

@@ -20,14 +20,7 @@
               <el-option v-for="(i, index) in areaList" :key="index" :label="i.label" :value="i.value"></el-option>
             </template>
             <template #icon="{ item }">
-              <cUpload
-                :model="item.model"
-                :limit="1"
-                url="/files/zkzx/v2/api/user/upload"
-                :list="form[item.model]"
-                listType="picture"
-                @change="onUpload"
-              ></cUpload>
+              <cUpload :model="item.model" :limit="1" url="/files/expert/upload" :list="form[item.model]" listType="picture" @change="onUpload"></cUpload>
             </template>
             <template #status>
               <el-option v-for="(i, index) in statusList" :key="index" :label="i.label" :value="i.value"></el-option>

+ 9 - 9
vite.config.ts

@@ -1,10 +1,10 @@
-import { fileURLToPath, URL } from 'node:url'
-import { defineConfig, loadEnv } from 'vite'
-import vue from '@vitejs/plugin-vue'
-const path = require('path')
-const common = path.resolve(__dirname, '../common')
+import { fileURLToPath, URL } from 'node:url';
+import { defineConfig, loadEnv } from 'vite';
+import vue from '@vitejs/plugin-vue';
+const path = require('path');
+const common = path.resolve(__dirname, '../common');
 export default defineConfig(({ mode }) => {
-  const env = loadEnv(mode, __dirname)
+  const env = loadEnv(mode, __dirname);
   return {
     // 静态路径
     base: env.VITE_BASE_URL,
@@ -17,7 +17,7 @@ export default defineConfig(({ mode }) => {
       port: 8003,
       proxy: {
         '/files': {
-          target: 'http://broadcast.kqyjy.com'
+          target: 'http://broadcast.waityou24.cn'
         },
         '/zkzx/v2/api': {
           target: 'http://192.168.1.113:12001',
@@ -33,5 +33,5 @@ export default defineConfig(({ mode }) => {
         '@common': common
       }
     }
-  }
-})
+  };
+});