更新
This commit is contained in:
parent
6a81e659ef
commit
720dbbc17b
3
.env.work
Normal file
3
.env.work
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
NODE_ENV = 'work'
|
||||||
|
|
||||||
|
VITE_APP_BASE_URL = 'https://worker-task.lihaink.cn/'
|
@ -4,10 +4,12 @@
|
|||||||
"license": "MIT",
|
"license": "MIT",
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"dev": "vite",
|
"dev": "vite",
|
||||||
|
"work": "vite --mode work",
|
||||||
"prod": "vite --mode production",
|
"prod": "vite --mode production",
|
||||||
"preview": "vite preview --port 4173",
|
"preview": "vite preview --port 4173",
|
||||||
"build": "vite build && node scripts/release.mjs",
|
"build": "vite build && node scripts/release.mjs",
|
||||||
"build:prod": "vite build --mode production && 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",
|
"type-check": "vue-tsc --noEmit",
|
||||||
"lint": "eslint . --ext .vue,.js,.jsx,.cjs,.mjs,.ts,.tsx,.cts,.mts --fix --ignore-path .gitignore"
|
"lint": "eslint . --ext .vue,.js,.jsx,.cjs,.mjs,.ts,.tsx,.cts,.mts --fix --ignore-path .gitignore"
|
||||||
},
|
},
|
||||||
|
@ -3,7 +3,7 @@ const config = {
|
|||||||
title: "后台管理系统", //网站默认标题
|
title: "后台管理系统", //网站默认标题
|
||||||
version: "1.6.0", //版本号
|
version: "1.6.0", //版本号
|
||||||
baseUrl: `${
|
baseUrl: `${
|
||||||
import.meta.env.VITE_APP_BASE_URL || "https://ceshi-worker-task.lihaink.cn"
|
import.meta.env.VITE_APP_BASE_URL
|
||||||
}/`, //请求接口域名
|
}/`, //请求接口域名
|
||||||
urlPrefix: "adminapi", //请求默认前缀
|
urlPrefix: "adminapi", //请求默认前缀
|
||||||
timeout: 10 * 1000, //请求超时时长
|
timeout: 10 * 1000, //请求超时时长
|
||||||
|
@ -91,7 +91,7 @@
|
|||||||
<el-button type="primary" link>
|
<el-button type="primary" link>
|
||||||
<router-link
|
<router-link
|
||||||
:to="{
|
:to="{
|
||||||
path: 'contract.contract/vehicle_detail',
|
path: 'vehicle_detail',
|
||||||
query: {
|
query: {
|
||||||
id: row.id,
|
id: row.id,
|
||||||
},
|
},
|
||||||
|
Loading…
x
Reference in New Issue
Block a user