chore: 配置生产环境地址并清除默认登录凭据
- 配置生产环境后端地址为 viewshanghai.com - 配置生产环境上传地址 - 清除默认登录账号密码,提升安全性 Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
3
.vscode/extensions.json
vendored
3
.vscode/extensions.json
vendored
@@ -10,6 +10,7 @@
|
|||||||
"uni-helper.uni-highlight-vscode",
|
"uni-helper.uni-highlight-vscode",
|
||||||
"uni-helper.uni-ui-snippets-vscode",
|
"uni-helper.uni-ui-snippets-vscode",
|
||||||
"uni-helper.uni-app-snippets-vscode",
|
"uni-helper.uni-app-snippets-vscode",
|
||||||
"streetsidesoftware.code-spell-checker"
|
"streetsidesoftware.code-spell-checker",
|
||||||
|
"anthropic.claude-code"
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
|
|||||||
14
env/.env
vendored
14
env/.env
vendored
@@ -1,8 +1,8 @@
|
|||||||
VITE_APP_TITLE = '芋道管理系统'
|
VITE_APP_TITLE = 'AIOT系统'
|
||||||
VITE_APP_PORT = 9000
|
VITE_APP_PORT = 9000
|
||||||
|
|
||||||
VITE_UNI_APPID = '__UNI__D1E5001'
|
VITE_UNI_APPID = '__UNI__D1E5001'
|
||||||
VITE_WX_APPID = 'wx63c280fe3248a3e7'
|
VITE_WX_APPID = 'wxb3dc42bb3017c3f2'
|
||||||
|
|
||||||
# h5部署网站的base,配置到 manifest.config.ts 里的 h5.router.base
|
# h5部署网站的base,配置到 manifest.config.ts 里的 h5.router.base
|
||||||
# https://uniapp.dcloud.net.cn/collocation/manifest.html#h5-router
|
# https://uniapp.dcloud.net.cn/collocation/manifest.html#h5-router
|
||||||
@@ -10,8 +10,8 @@ VITE_WX_APPID = 'wx63c280fe3248a3e7'
|
|||||||
VITE_APP_PUBLIC_BASE=/
|
VITE_APP_PUBLIC_BASE=/
|
||||||
|
|
||||||
# 后台请求地址
|
# 后台请求地址
|
||||||
VITE_SERVER_BASEURL = 'http://localhost:48080/admin-api'
|
VITE_SERVER_BASEURL = 'http://192.168.0.104:48080/admin-api'
|
||||||
VITE_UPLOAD_BASEURL = 'http://localhost:48080/upload'
|
VITE_UPLOAD_BASEURL = 'http://192.168.0.104:48080/upload'
|
||||||
# 备注:如果后台带统一前缀,则也要加到后面,eg: https://ukw0y1.laf.run/api
|
# 备注:如果后台带统一前缀,则也要加到后面,eg: https://ukw0y1.laf.run/api
|
||||||
|
|
||||||
# 注意,如果是微信小程序,还有一套请求地址的配置,根据 develop、trial、release 分别设置上传地址,见 `src/utils/index.ts`。
|
# 注意,如果是微信小程序,还有一套请求地址的配置,根据 develop、trial、release 分别设置上传地址,见 `src/utils/index.ts`。
|
||||||
@@ -38,9 +38,9 @@ VITE_APP_TENANT_ENABLE=true
|
|||||||
# 验证码的开关
|
# 验证码的开关
|
||||||
VITE_APP_CAPTCHA_ENABLE=false
|
VITE_APP_CAPTCHA_ENABLE=false
|
||||||
# 默认账户密码
|
# 默认账户密码
|
||||||
VITE_APP_DEFAULT_LOGIN_TENANT_ID = 1
|
VITE_APP_DEFAULT_LOGIN_TENANT_ID =
|
||||||
VITE_APP_DEFAULT_LOGIN_USERNAME = admin
|
VITE_APP_DEFAULT_LOGIN_USERNAME =
|
||||||
VITE_APP_DEFAULT_LOGIN_PASSWORD = admin123
|
VITE_APP_DEFAULT_LOGIN_PASSWORD =
|
||||||
|
|
||||||
# API 加解密
|
# API 加解密
|
||||||
VITE_APP_API_ENCRYPT_ENABLE = true
|
VITE_APP_API_ENCRYPT_ENABLE = true
|
||||||
|
|||||||
3
env/.env.production
vendored
3
env/.env.production
vendored
@@ -6,4 +6,5 @@ VITE_DELETE_CONSOLE = true
|
|||||||
VITE_SHOW_SOURCEMAP = false
|
VITE_SHOW_SOURCEMAP = false
|
||||||
|
|
||||||
# 后台请求地址
|
# 后台请求地址
|
||||||
# VITE_SERVER_BASEURL = 'https://prod.xxx.com'
|
VITE_SERVER_BASEURL = 'https://viewshanghai.com/admin-api'
|
||||||
|
VITE_UPLOAD_BASEURL = 'https://viewshanghai.com/admin-api'
|
||||||
|
|||||||
Reference in New Issue
Block a user