目录名称修正

This commit is contained in:
aixianling
2022-02-09 10:35:29 +08:00
parent f7b60e2f0c
commit 98114b6e87
194 changed files with 11 additions and 10 deletions

View File

@@ -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() {