chenjj 3 hónapja%!(EXTRA string=óta)
szülő
commit
f358351136
2 módosított fájl, 3 hozzáadás és 3 törlés
  1. 1 1
      src/views/components/ListPage/Table.vue
  2. 2 2
      vite.config.js

+ 1 - 1
src/views/components/ListPage/Table.vue

@@ -123,7 +123,7 @@ const injects = inject('selectChange');
 /** 多选框选中数据 */
 const handleSelectionChange = (selection,row) => {
     console.log('selection', selection);
-    injects(selection)
+    injects && injects(selection)
     ids.value = selection.map(item => item[props.tableKey]);
     console.log('ids', ids);
 

+ 2 - 2
vite.config.js

@@ -38,8 +38,8 @@ export default defineConfig(({ mode, command }) => {
         // https://cn.vitejs.dev/config/#server-proxy
         '/dev-api': {
           // target: 'http://192.168.100.139:9527',
-          target: 'http://192.168.100.122:9527',
-          // target: 'https://yongc.top/prod-api', 
+          // target: 'http://192.168.100.122:9527',
+          target: 'https://yongc.top/prod-api', 
           // target: 'http://192.168.100.128:9527',
           // target: 'https://goldshulin.com/prod-api',
           changeOrigin: true,