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