|
|
@@ -54,8 +54,7 @@
|
|
|
nextTick
|
|
|
} from "vue";
|
|
|
import {
|
|
|
- onLoad,
|
|
|
- onShow
|
|
|
+ onLoad
|
|
|
} from "@dcloudio/uni-app";
|
|
|
import * as httpApi from "@/api/sanfang.js"
|
|
|
|
|
|
@@ -210,13 +209,6 @@
|
|
|
|
|
|
if (flag) {
|
|
|
data.type = 'editorHetong'
|
|
|
- } else {
|
|
|
- data.type = 'addHetong'
|
|
|
- }
|
|
|
- })
|
|
|
-
|
|
|
- onShow(() => {
|
|
|
- if (data.type == 'editorHetong') {
|
|
|
getMoban().then(() => {
|
|
|
httpApi.getSanfangInfo({
|
|
|
id
|
|
|
@@ -225,6 +217,7 @@
|
|
|
})
|
|
|
})
|
|
|
} else {
|
|
|
+ data.type = 'addHetong'
|
|
|
httpApi.getSanfangCheck().then(res => {
|
|
|
if (res.data) {
|
|
|
getMoban();
|