Browse Source

feat: save

gemercheung 1 year ago
parent
commit
fbab8b299b
2 changed files with 6 additions and 3 deletions
  1. 1 0
      src/view/cameraVersionApp/index.vue
  2. 5 3
      vite.config.ts

+ 1 - 0
src/view/cameraVersionApp/index.vue

@@ -118,6 +118,7 @@ const editHandler = async (row: CameraVersionAppEntity) => {
   await editCameraAppVersion({
     entity: row,
   });
+  pageHook.pagging.refresh();
 };
 
 const delHandler = async (row: CameraVersionAppEntity) => {

+ 5 - 3
vite.config.ts

@@ -3,13 +3,15 @@ import vue from "@vitejs/plugin-vue";
 import { resolve } from "path";
 import ElementPlus from "unplugin-element-plus/vite";
 
+
 let app = "fire";
 if (process.argv.length > 3) {
   app = process.argv[process.argv.length - 1].trim();
 }
 
 const dev = true;
-
+// const devUrl = "https://xj-mix3d.4dkankan.com"
+const devUrl = "https://192.168.0.25"
 export default defineConfig({
   define: {
     VITE_APP_APP: JSON.stringify(app),
@@ -46,13 +48,13 @@ export default defineConfig({
     proxy: {
       "/api": {
         secure: false,
-        target: dev ? "https://xj-mix3d.4dkankan.com" : "mix3d.4dkankan.com",
+        target: dev ? devUrl : "mix3d.4dkankan.com",
         changeOrigin: true,
         rewrite: (path) => path.replace(new RegExp(`^/api`), ""),
       },
       "/fusion-xj": {
         secure: false,
-        target: dev ? "https://xj-mix3d.4dkankan.com" : "mix3d.4dkankan.com",
+        target: dev ? devUrl : "mix3d.4dkankan.com",
         changeOrigin: true,
         rewrite: (path) => path.replace(new RegExp(`^/api`), "/fusion-xj"),
       },