修复异常
This commit is contained in:
@@ -64,7 +64,7 @@ export default {
|
||||
onLoad(option) {
|
||||
this.$loading()
|
||||
this.names = option.names;
|
||||
this.search.areaId = option.areaId || this.user.areaId
|
||||
this.search.areaId = option.areaId || this.user.areaId || ""
|
||||
this.getName();
|
||||
if (option.names) {
|
||||
uni.setNavigationBarTitle({
|
||||
@@ -88,8 +88,8 @@ export default {
|
||||
}).then(res => {
|
||||
if (res?.data) {
|
||||
this.categorys = res.data?.[0]?.categoryList || [];
|
||||
this.search.moduleId = res.data?.[0]?.id;
|
||||
this.search.categoryId = res.data?.[0]?.categoryList?.[0]?.id;
|
||||
this.search.moduleId = res.data?.[0]?.id || "";
|
||||
this.search.categoryId = res.data?.[0]?.categoryList?.[0]?.id || "";
|
||||
this.getCategoryList();
|
||||
} else {
|
||||
this.$hideLoading()
|
||||
@@ -103,10 +103,7 @@ export default {
|
||||
},
|
||||
getCategoryList() {
|
||||
this.$instance.post("/app/appcontentinfo/list", null, {
|
||||
params: {
|
||||
...this.search,
|
||||
size: 10
|
||||
}
|
||||
params: {...this.search, size: 10}
|
||||
}).then(res => {
|
||||
if (res?.data) {
|
||||
this.categoryList = this.current > 1 ? [...this.categoryList, ...res.data.records] : res.data.records;
|
||||
|
||||
Reference in New Issue
Block a user