diff --git a/.env.production b/.env.production index 80c8103..14da59c 100644 --- a/.env.production +++ b/.env.production @@ -2,5 +2,5 @@ ENV = 'production' # base api -VUE_APP_BASE_API = '/prod-api' +VUE_APP_BASE_API = '/' diff --git a/src/main.js b/src/main.js index 01cba2f..20cb072 100644 --- a/src/main.js +++ b/src/main.js @@ -15,19 +15,6 @@ import router from './router' import '@/icons' // icon import '@/permission' // permission control -/** - * If you don't want to use mock-server - * you want to use MockJs for mock api - * you can execute: mockXHR() - * - * Currently MockJs will be used in the production environment, - * please remove it before going online ! ! ! - */ -if (process.env.NODE_ENV === 'production') { - const { mockXHR } = require('../mock') - mockXHR() -} - // set ElementUI lang to EN Vue.use(ElementUI, { locale }) // 如果想要中文版 element-ui,按如下方式声明 diff --git a/src/views/vehicle/index.vue b/src/views/vehicle/index.vue index 8151b5a..a226227 100644 --- a/src/views/vehicle/index.vue +++ b/src/views/vehicle/index.vue @@ -2,9 +2,14 @@
-
+ +
+ 添加车辆 +
+
+
- +
@@ -34,8 +39,6 @@ - - P档只上报,不模拟 @@ -47,7 +50,7 @@ - {{vehicle.mileage}} + {{vehicle.mileage}}/KM