目录名称修正
| @@ -83,7 +83,7 @@ const start = () => { | ||||
|       json.pages.push(app) | ||||
|     } | ||||
|   }).then(() => { | ||||
|     return findApp('src/sass', file => { | ||||
|     return findApp('src/saas', file => { | ||||
|       if (/.+\\App[^\\]+\\[^\\]+\.vue/g.test(file)) { | ||||
|         let app = { | ||||
|           name: file.replace(/.*\\([^\\]+).vue/g, '$1'), | ||||
|   | ||||
| @@ -14,7 +14,6 @@ export default { | ||||
|     this.initWaterMarker() | ||||
|   }, | ||||
|   onPageNotFound() { | ||||
|     // this.logout() | ||||
|   }, | ||||
|   computed: { | ||||
|     ...mapState(['token', 'user']), | ||||
|   | ||||
| @@ -1,8 +1,10 @@ | ||||
| import axios from 'axios' | ||||
| import store from '../store' | ||||
|  | ||||
| const baseURL = process.env.NODE_ENV === "production" ? "/" : | ||||
|     sessionStorage.getItem("prj") == "saas" ? "/saas" : "/lan" | ||||
| let instance = axios.create({ | ||||
|   baseURL: process.env.NODE_ENV === "production" ? "/" : "/lan", | ||||
|   baseURL, | ||||
|   timeout: 600000, | ||||
|   withCredentials: true, | ||||
| }) | ||||
|   | ||||
| @@ -57,7 +57,7 @@ export default { | ||||
|     disabled: Boolean | ||||
|   }, | ||||
|   computed: { | ||||
|     ...mapState(['baseURL', 'token']), | ||||
|     ...mapState(['token']), | ||||
|     errorImage() { | ||||
|       return this.$cdn + 'file.png' | ||||
|     }, | ||||
|   | ||||
| @@ -18,10 +18,8 @@ const hideLoading = () => { | ||||
|  | ||||
| Vue.prototype.$loading = loading | ||||
| Vue.prototype.$hideLoading = hideLoading | ||||
|  | ||||
| Vue.use(ui) | ||||
| Vue.config.productionTip = false; | ||||
| Vue.prototype.$store = store; | ||||
| //初始化接口工具类 | ||||
| Vue.prototype.$http = axios; | ||||
| Vue.prototype.$cdn = 'https://cdn.cunwuyun.cn/dvcp/h5/'; | ||||
|   | ||||
| @@ -41,7 +41,7 @@ export default { | ||||
|       apps: [], | ||||
|       libs: [ | ||||
|         {label: "通用版", dir: "apps"}, | ||||
|         {label: "上架版", dir: "sass"}, | ||||
|         {label: "上架版", dir: "saas"}, | ||||
|       ], | ||||
|       currentLib: "apps", | ||||
|       search: "" | ||||
| @@ -59,7 +59,7 @@ export default { | ||||
|     getApps() { | ||||
|       this.apps = [] | ||||
|       let applications = this.currentLib == "apps" ? require.context('../apps', true, /\.(\/.+)\/App[^\/]+\.vue$/) : | ||||
|           this.currentLib == "sass" ? require.context('../sass', true, /\.(\/.+)\/App[^\/]+\.vue$/) : null | ||||
|           this.currentLib == "saas" ? require.context('../saas', true, /\.(\/.+)\/App[^\/]+\.vue$/) : null | ||||
|       applications.keys().map(path => { | ||||
|         if (applications(path).default) { | ||||
|           let {name: key, appName: name} = applications(path).default | ||||
| @@ -75,7 +75,7 @@ export default { | ||||
|     }, | ||||
|     changeConfig() { | ||||
|       this.$http.defaults.baseURL = this.currentLib == "apps" ? "/lan" : | ||||
|           this.currentLib == "sass" ? "/saas" : "/" | ||||
|           this.currentLib == "saas" ? "/saas" : "/" | ||||
|     } | ||||
|   }, | ||||
|   onLoad() { | ||||
|   | ||||
| Before Width: | Height: | Size: 3.4 KiB After Width: | Height: | Size: 3.4 KiB | 
| Before Width: | Height: | Size: 282 B After Width: | Height: | Size: 282 B | 
| Before Width: | Height: | Size: 314 B After Width: | Height: | Size: 314 B | 
| Before Width: | Height: | Size: 625 B After Width: | Height: | Size: 625 B | 
| Before Width: | Height: | Size: 36 KiB After Width: | Height: | Size: 36 KiB | 
| Before Width: | Height: | Size: 1.2 KiB After Width: | Height: | Size: 1.2 KiB | 
| Before Width: | Height: | Size: 1.1 KiB After Width: | Height: | Size: 1.1 KiB | 
| Before Width: | Height: | Size: 161 KiB After Width: | Height: | Size: 161 KiB | 
| Before Width: | Height: | Size: 48 KiB After Width: | Height: | Size: 48 KiB | 
| Before Width: | Height: | Size: 1.5 KiB After Width: | Height: | Size: 1.5 KiB | 
| Before Width: | Height: | Size: 2.1 KiB After Width: | Height: | Size: 2.1 KiB | 
| Before Width: | Height: | Size: 1.1 KiB After Width: | Height: | Size: 1.1 KiB | 
| Before Width: | Height: | Size: 1.4 KiB After Width: | Height: | Size: 1.4 KiB | 
| Before Width: | Height: | Size: 1.4 KiB After Width: | Height: | Size: 1.4 KiB | 
| Before Width: | Height: | Size: 21 KiB After Width: | Height: | Size: 21 KiB | 
| Before Width: | Height: | Size: 1.8 KiB After Width: | Height: | Size: 1.8 KiB | 
| Before Width: | Height: | Size: 277 B After Width: | Height: | Size: 277 B | 
| Before Width: | Height: | Size: 1.8 KiB After Width: | Height: | Size: 1.8 KiB | 
| Before Width: | Height: | Size: 978 B After Width: | Height: | Size: 978 B | 
| Before Width: | Height: | Size: 7.7 KiB After Width: | Height: | Size: 7.7 KiB | 
| Before Width: | Height: | Size: 373 B After Width: | Height: | Size: 373 B | 
| Before Width: | Height: | Size: 766 B After Width: | Height: | Size: 766 B | 
| Before Width: | Height: | Size: 1.7 KiB After Width: | Height: | Size: 1.7 KiB | 
| Before Width: | Height: | Size: 1.7 KiB After Width: | Height: | Size: 1.7 KiB | 
| Before Width: | Height: | Size: 1.0 KiB After Width: | Height: | Size: 1.0 KiB | 
| Before Width: | Height: | Size: 1.4 KiB After Width: | Height: | Size: 1.4 KiB | 
| Before Width: | Height: | Size: 2.7 KiB After Width: | Height: | Size: 2.7 KiB | 
| Before Width: | Height: | Size: 2.2 KiB After Width: | Height: | Size: 2.2 KiB | 
| Before Width: | Height: | Size: 1.5 KiB After Width: | Height: | Size: 1.5 KiB | 
| Before Width: | Height: | Size: 1.7 KiB After Width: | Height: | Size: 1.7 KiB | 
| Before Width: | Height: | Size: 1.3 KiB After Width: | Height: | Size: 1.3 KiB | 
| Before Width: | Height: | Size: 545 B After Width: | Height: | Size: 545 B | 
| Before Width: | Height: | Size: 866 B After Width: | Height: | Size: 866 B | 
| Before Width: | Height: | Size: 1.7 KiB After Width: | Height: | Size: 1.7 KiB | 
| Before Width: | Height: | Size: 1.5 KiB After Width: | Height: | Size: 1.5 KiB | 
| Before Width: | Height: | Size: 757 B After Width: | Height: | Size: 757 B | 
| Before Width: | Height: | Size: 1.9 KiB After Width: | Height: | Size: 1.9 KiB | 
| Before Width: | Height: | Size: 1.5 KiB After Width: | Height: | Size: 1.5 KiB | 
| Before Width: | Height: | Size: 892 B After Width: | Height: | Size: 892 B | 
| Before Width: | Height: | Size: 1.4 KiB After Width: | Height: | Size: 1.4 KiB | 
| Before Width: | Height: | Size: 623 B After Width: | Height: | Size: 623 B | 
| Before Width: | Height: | Size: 810 B After Width: | Height: | Size: 810 B | 
| Before Width: | Height: | Size: 815 B After Width: | Height: | Size: 815 B | 
| Before Width: | Height: | Size: 3.2 KiB After Width: | Height: | Size: 3.2 KiB | 
| Before Width: | Height: | Size: 2.7 KiB After Width: | Height: | Size: 2.7 KiB | 
| Before Width: | Height: | Size: 2.6 KiB After Width: | Height: | Size: 2.6 KiB | 
| Before Width: | Height: | Size: 314 B After Width: | Height: | Size: 314 B | 
| Before Width: | Height: | Size: 1.2 KiB After Width: | Height: | Size: 1.2 KiB | 
| Before Width: | Height: | Size: 1.1 KiB After Width: | Height: | Size: 1.1 KiB | 
| Before Width: | Height: | Size: 1.5 KiB After Width: | Height: | Size: 1.5 KiB | 
| Before Width: | Height: | Size: 1.5 KiB After Width: | Height: | Size: 1.5 KiB | 
| Before Width: | Height: | Size: 1.5 KiB After Width: | Height: | Size: 1.5 KiB | 
| Before Width: | Height: | Size: 1.6 KiB After Width: | Height: | Size: 1.6 KiB | 
| Before Width: | Height: | Size: 1.1 KiB After Width: | Height: | Size: 1.1 KiB | 
| Before Width: | Height: | Size: 21 KiB After Width: | Height: | Size: 21 KiB | 
| Before Width: | Height: | Size: 803 B After Width: | Height: | Size: 803 B | 
| Before Width: | Height: | Size: 373 B After Width: | Height: | Size: 373 B | 
| Before Width: | Height: | Size: 766 B After Width: | Height: | Size: 766 B | 
| Before Width: | Height: | Size: 1.6 KiB After Width: | Height: | Size: 1.6 KiB | 
| Before Width: | Height: | Size: 1.6 KiB After Width: | Height: | Size: 1.6 KiB |