mirror of
http://112.124.100.131/GFRS/ebiz-h5.git
synced 2025-12-11 13:16:43 +08:00
整理环境分支问题
This commit is contained in:
22
src/main.js
22
src/main.js
@@ -51,15 +51,21 @@ Vue.prototype.$jump = Jump
|
||||
Vue.prototype.$utils = utils
|
||||
|
||||
//混合开发调试工具
|
||||
if (process.env.NODE_ENV == 'development') {
|
||||
// let Eruda = require('eruda')
|
||||
// Eruda.init()
|
||||
Vue.prototype.$rootUrl = location.origin
|
||||
} else if (process.env.NODE_ENV == 'production') {
|
||||
Vue.prototype.$rootUrl = location.origin + '/ebiz-h5'
|
||||
// if (process.env.NODE_ENV == 'development') {
|
||||
// // let Eruda = require('eruda')
|
||||
// // Eruda.init()
|
||||
// Vue.prototype.$rootUrl = location.origin
|
||||
// } else if (process.env.NODE_ENV == 'production') {
|
||||
// Vue.prototype.$rootUrl = location.origin + '/ebiz-h5'
|
||||
// }
|
||||
if (process.env.VUE_APP_FLAG != 'prd') {
|
||||
let Eruda = require('eruda')
|
||||
Eruda.init()
|
||||
} else {
|
||||
// Vue.prototype.$rootUrl = location.origin + '/ebiz-h5'
|
||||
Vue.config.devtools = true
|
||||
}
|
||||
let Eruda = require('eruda')
|
||||
Eruda.init()
|
||||
|
||||
// 注册过滤器
|
||||
Object.keys(Filters).forEach(function(k) {
|
||||
Vue.filter(k, Filters[k])
|
||||
|
||||
Reference in New Issue
Block a user