diff --git a/.env.development b/.env.development new file mode 100644 index 0000000..0ea2f62 --- /dev/null +++ b/.env.development @@ -0,0 +1,3 @@ +ENV = 'development' + +VUE_APP_BASE_API = '/api' \ No newline at end of file diff --git a/.env.production b/.env.production new file mode 100644 index 0000000..209ee4a --- /dev/null +++ b/.env.production @@ -0,0 +1,3 @@ +ENV = 'production' + +VUE_APP_BASE_API = '/wanandroid' \ No newline at end of file diff --git a/package.json b/package.json index 7f29d40..326a506 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "v-android", - "version": "0.1.0", + "version": "1.0.0", "private": true, "scripts": { "serve": "vue-cli-service serve", diff --git a/src/element-variables.scss b/src/element-variables.scss deleted file mode 100644 index a8894cc..0000000 --- a/src/element-variables.scss +++ /dev/null @@ -1,11 +0,0 @@ -/* -Write your variables here. All available variables can be -found in element-ui/packages/theme-chalk/src/common/var.scss. -For example, to overwrite the theme color: -*/ -$--color-primary: #59a57c; - -/* icon font path, required */ -$--font-path: '~element-ui/lib/theme-chalk/fonts'; - -@import "~element-ui/packages/theme-chalk/src/index"; diff --git a/src/layout/components/SideBar/components/CommonlyUsedSite/index.vue b/src/layout/components/SideBar/components/CommonlyUsedSite/index.vue deleted file mode 100644 index 0c20187..0000000 --- a/src/layout/components/SideBar/components/CommonlyUsedSite/index.vue +++ /dev/null @@ -1,48 +0,0 @@ - - - - - \ No newline at end of file diff --git a/src/layout/components/SideBar/components/Personal/index.vue b/src/layout/components/SideBar/components/Personal/index.vue deleted file mode 100644 index 01f70d9..0000000 --- a/src/layout/components/SideBar/components/Personal/index.vue +++ /dev/null @@ -1,45 +0,0 @@ - - - - - \ No newline at end of file diff --git a/src/utils/request.js b/src/utils/request.js index 3a0f7a2..830ee91 100644 --- a/src/utils/request.js +++ b/src/utils/request.js @@ -4,7 +4,7 @@ import axios from 'axios' import { Message } from 'element-ui' const instance = axios.create({ - baseURL: '/api', + baseURL: process.env.VUE_APP_BASE_API, withCredentials: true, // send cookies when cross-domain requests })