刘翔宇-旅管家 3 years ago
parent 04b7ac53af
commit f51ee41675

@ -2,4 +2,4 @@
ENV = 'development' ENV = 'development'
# base api # base api
VUE_APP_BASE_API = '' VUE_APP_BASE_API = 'http://starter.ali251.langye.net'

@ -2,5 +2,5 @@
ENV = 'production' ENV = 'production'
# base api # base api
VUE_APP_BASE_API = '/prod-api' VUE_APP_BASE_API = 'http://starter.ali251.langye.net'

@ -1,6 +1,6 @@
module.exports = { module.exports = {
title: '泵故障监测云平台', title: '朗业基础开发平台',
/** /**
* @type {boolean} true | false * @type {boolean} true | false

@ -9,7 +9,7 @@
label-position="left"> label-position="left">
<div class="title-container"> <div class="title-container">
<h3 class="title">赛特勒泵故障监测云平台</h3> <h3 class="title">{{title}}</h3>
</div> </div>
<el-form-item prop="username"> <el-form-item prop="username">
@ -40,6 +40,7 @@
</template> </template>
<script> <script>
const defaultSettings = require('@/settings.js')
import { import {
validUsername validUsername
} from '@/utils/validate' } from '@/utils/validate'
@ -61,7 +62,8 @@
callback() callback()
} }
} }
return { return {
title:defaultSettings.title,
loginForm: { loginForm: {
username: 'admin', username: 'admin',
password: 'Admin2022' password: 'Admin2022'

@ -6,7 +6,7 @@ function resolve(dir) {
return path.join(__dirname, dir) return path.join(__dirname, dir)
} }
const name = defaultSettings.title || '泵故障监测云平台' // page title const name = defaultSettings.title || '朗业基础开发平台' // page title
// If your port is set to 80, // If your port is set to 80,
// use administrator privileges to execute the command line. // use administrator privileges to execute the command line.
@ -46,10 +46,10 @@ module.exports = {
//before: require('./mock/mock-server.js'), //before: require('./mock/mock-server.js'),
proxy: { proxy: {
[process.env.VUE_APP_BASE_API]: { [process.env.VUE_APP_BASE_API]: {
target: 'http://saitele-pump.langye.net/', target: process.env.VUE_APP_BASE_API,
changeOrigin: true, //配置跨域 changeOrigin: true, //配置跨域
pathRewrite: { pathRewrite: {
['^' + process.env.VUE_APP_BASE_API]: '' ['^' + process.env.VUE_APP_BASE_API]: process.env.VUE_APP_BASE_API
} }
} }
} }

Loading…
Cancel
Save