图像评估的功能

This commit is contained in:
lSun 2025-10-20 10:08:06 +08:00
parent 5c00a0b725
commit f857144ed9
6 changed files with 8 additions and 7 deletions

View File

@ -6,7 +6,7 @@ ENV = 'development'
VUE_APP_ENV = 'development'
# 图像评估与自动标注系统/开发环境
VUE_APP_BASE_API = '/dev-api'
VUE_APP_BASE_API = '/image-api'
# 路由懒加载
VUE_CLI_BABEL_TRANSPILE_MODULES = true

View File

@ -6,4 +6,4 @@ ENV = 'production'
VUE_APP_ENV = 'production'
# 图像评估与自动标注系统/生产环境
VUE_APP_BASE_API = '/bnscloud'
VUE_APP_BASE_API = '/image-api'

View File

@ -266,5 +266,5 @@ export default new Router({
mode: 'history', // 去掉url中的#
scrollBehavior: () => ({y: 0}),
routes: constantRoutes,
base: process.env.VUE_APP_ENV === 'production' ? '/pubSerPlatform' : '',
base: process.env.VUE_APP_ENV === 'production' ? '/image' : '',
})

View File

@ -123,7 +123,7 @@ service.interceptors.response.use(
store.dispatch('LogOut').then(() => {
location.href =
process.env.VUE_APP_ENV === 'production'
? '/pubSerPlatform/index'
? '/image/index'
: '/index'
})
})

View File

@ -132,7 +132,7 @@ service.interceptors.response.use(
store.dispatch('LogOut').then(() => {
location.href =
process.env.VUE_APP_ENV === 'production'
? '/pubSerPlatform/index'
? '/image/index'
: '/index'
})
})

View File

@ -19,7 +19,7 @@ module.exports = {
// 部署生产环境和开发环境下的URL。
// 默认情况下Vue CLI 会假设你的应用是被部署在一个域名的根路径上
// 例如 https://www.ruoyi.vip/。如果应用被部署在一个子路径上,你就需要用这个选项指定这个子路径。例如,如果你的应用被部署在 https://www.ruoyi.vip/admin/,则设置 baseUrl 为 /admin/。
publicPath: process.env.NODE_ENV === 'production' ? '/pubSerPlatform' : '/',
publicPath: process.env.NODE_ENV === 'production' ? '/image' : '/',
// 在npm run build 或 yarn build 时 生成文件的目录名称要和baseUrl的生产环境路径一致默认dist
outputDir: 'dist',
// 用于放置生成的静态资源 (js、css、img、fonts) 的;(项目打包之后,静态资源会放在这个文件夹下)
@ -37,7 +37,8 @@ module.exports = {
[process.env.VUE_APP_BASE_API]: {
// target: 'http://192.168.0.7:58080/bnscloud', // 产线环境
// target: 'http://192.168.0.14:1999/bnscloud', // 测试环境
target: 'http://192.168.0.50:58080/bnscloud', // 测试环境
// target: 'http://192.168.0.50:58080/caption', // 本地环境
target: 'http://192.168.0.38:58080/image', // 测试环境
changeOrigin: true,
pathRewrite: {
['^' + process.env.VUE_APP_BASE_API]: '',