This commit is contained in:
parent
fee00d4d9b
commit
a1e3850f81
|
|
@ -6,5 +6,4 @@ ENV = 'production'
|
|||
VUE_APP_ENV = 'production'
|
||||
|
||||
# 安薪宝一体化平台/生产环境
|
||||
VUE_APP_BASE_API = '/gs-real-name-prod-api
|
||||
'
|
||||
VUE_APP_BASE_API = '/gs-real-name'
|
||||
|
|
|
|||
|
|
@ -114,7 +114,7 @@ export default {
|
|||
this.$store.dispatch('LogOut').then(() => {
|
||||
location.href =
|
||||
process.env.VUE_APP_ENV === 'production'
|
||||
? '/gs-real-name/index'
|
||||
? '/gs-realname/index'
|
||||
: '/index'
|
||||
})
|
||||
})
|
||||
|
|
|
|||
|
|
@ -201,7 +201,10 @@ export default {
|
|||
},
|
||||
close() {
|
||||
this.$store.dispatch('LogOut').then(() => {
|
||||
location.href = '/index'
|
||||
location.href =
|
||||
process.env.VUE_APP_ENV === 'production'
|
||||
? '/gs-realname/index'
|
||||
: '/index'
|
||||
})
|
||||
},
|
||||
|
||||
|
|
|
|||
|
|
@ -266,5 +266,5 @@ export default new Router({
|
|||
mode: 'history', // 去掉url中的#
|
||||
scrollBehavior: () => ({ y: 0 }),
|
||||
routes: constantRoutes,
|
||||
base: process.env.VUE_APP_ENV === 'production' ? '/gs-real-name' : '',
|
||||
base: process.env.VUE_APP_ENV === 'production' ? '/gs-realname' : '',
|
||||
})
|
||||
|
|
|
|||
|
|
@ -221,7 +221,7 @@ service.interceptors.response.use(
|
|||
// location.href = '/index'
|
||||
location.href =
|
||||
process.env.VUE_APP_ENV === 'production'
|
||||
? '/gs-real-name/index'
|
||||
? '/gs-realname/index'
|
||||
: '/index'
|
||||
})
|
||||
})
|
||||
|
|
|
|||
|
|
@ -76,7 +76,7 @@
|
|||
</el-col>
|
||||
</el-row>
|
||||
|
||||
<el-row>
|
||||
<!-- <el-row>
|
||||
<el-col :span="24">
|
||||
<el-form-item
|
||||
label="法定代表人授权书"
|
||||
|
|
@ -99,7 +99,7 @@
|
|||
/>
|
||||
</el-form-item>
|
||||
</el-col>
|
||||
</el-row>
|
||||
</el-row> -->
|
||||
</el-form>
|
||||
</div>
|
||||
</template>
|
||||
|
|
|
|||
|
|
@ -317,7 +317,7 @@ export default {
|
|||
// 判断是否为测试环境
|
||||
if (process.env.VUE_APP_ENV === 'production') {
|
||||
window.open(
|
||||
window.origin + '/gs-real-name' + '/人员入场-模版.xlsx',
|
||||
window.origin + '/gs-realname' + '/人员入场-模版.xlsx',
|
||||
)
|
||||
} else {
|
||||
window.open(window.origin + '/人员入场-模版.xlsx')
|
||||
|
|
|
|||
|
|
@ -478,7 +478,7 @@ export default {
|
|||
// 判断是否为测试环境
|
||||
if (process.env.VUE_APP_ENV === 'production') {
|
||||
window.open(
|
||||
window.origin + '/gs-real-name' + '/失信人员-模板.xlsx',
|
||||
window.origin + '/gs-realname' + '/失信人员-模板.xlsx',
|
||||
)
|
||||
} else {
|
||||
window.open(window.origin + '/失信人员-模板.xlsx')
|
||||
|
|
|
|||
|
|
@ -18,7 +18,7 @@ module.exports = {
|
|||
// 部署生产环境和开发环境下的URL。
|
||||
// 默认情况下,Vue CLI 会假设你的应用是被部署在一个域名的根路径上
|
||||
// 例如 https://www.bonus.vip/。如果应用被部署在一个子路径上,你就需要用这个选项指定这个子路径。例如,如果你的应用被部署在 https://www.bonus.vip/admin/,则设置 baseUrl 为 /admin/。
|
||||
publicPath: process.env.NODE_ENV === 'production' ? '/gs-real-name' : '/',
|
||||
publicPath: process.env.NODE_ENV === 'production' ? '/gs-realname' : '/',
|
||||
// 在npm run build 或 yarn build 时 ,生成文件的目录名称(要和baseUrl的生产环境路径一致)(默认dist)
|
||||
outputDir: 'dist',
|
||||
// 用于放置生成的静态资源 (js、css、img、fonts) 的;(项目打包之后,静态资源会放在这个文件夹下)
|
||||
|
|
|
|||
Loading…
Reference in New Issue