diff --git a/.env.work b/.env.work new file mode 100644 index 0000000..0c8c9dc --- /dev/null +++ b/.env.work @@ -0,0 +1,3 @@ +NODE_ENV = 'work' + +VITE_APP_BASE_URL = 'https://worker-task.lihaink.cn/' \ No newline at end of file diff --git a/dist.rar b/dist.rar new file mode 100644 index 0000000..8368113 Binary files /dev/null and b/dist.rar differ diff --git a/package.json b/package.json index 5107dee..b8d356c 100644 --- a/package.json +++ b/package.json @@ -4,10 +4,12 @@ "license": "MIT", "scripts": { "dev": "vite", + "work": "vite --mode work", "prod": "vite --mode production", "preview": "vite preview --port 4173", "build": "vite build && node scripts/release.mjs", "build:prod": "vite build --mode production && node scripts/release.mjs", + "build:work": "vite build --mode production && node scripts/release.mjs", "type-check": "vue-tsc --noEmit", "lint": "eslint . --ext .vue,.js,.jsx,.cjs,.mjs,.ts,.tsx,.cts,.mts --fix --ignore-path .gitignore" }, diff --git a/src/config/index.ts b/src/config/index.ts index c300e42..49483f1 100644 --- a/src/config/index.ts +++ b/src/config/index.ts @@ -3,7 +3,7 @@ const config = { title: "后台管理系统", //网站默认标题 version: "1.6.0", //版本号 baseUrl: `${ - import.meta.env.VITE_APP_BASE_URL || "https://ceshi-worker-task.lihaink.cn" + import.meta.env.VITE_APP_BASE_URL }/`, //请求接口域名 urlPrefix: "adminapi", //请求默认前缀 timeout: 10 * 1000, //请求超时时长 diff --git a/src/views/contract/vehicle_list.vue b/src/views/contract/vehicle_list.vue index 8d91c71..08c63b2 100644 --- a/src/views/contract/vehicle_list.vue +++ b/src/views/contract/vehicle_list.vue @@ -91,7 +91,7 @@