mirror of
https://gitee.com/beijing_hongye_huicheng/lilishop-ui.git
synced 2025-12-18 17:05:54 +08:00
页签切换,一级菜单也要选中,报错信息提示多个问题
This commit is contained in:
@@ -11,7 +11,7 @@
|
||||
</template>
|
||||
<script>
|
||||
|
||||
import * as API_Setup from "@/api/index.js";
|
||||
import * as API_Setup from "@/api/common.js";
|
||||
export default {
|
||||
data() {
|
||||
return {
|
||||
@@ -46,7 +46,7 @@ export default {
|
||||
},
|
||||
loadData(item, callback) {
|
||||
item.loading = true;
|
||||
API_Setup.getRegion(item.value).then((res) => {
|
||||
API_Setup.getChildRegion(item.value).then((res) => {
|
||||
if (res.result.length <= 0) {
|
||||
item.loading = false;
|
||||
this.selected = item;
|
||||
@@ -84,7 +84,7 @@ export default {
|
||||
});
|
||||
},
|
||||
init() {
|
||||
API_Setup.getRegion(this.id).then((res) => {
|
||||
API_Setup.getChildRegion(this.id).then((res) => {
|
||||
let way = [];
|
||||
|
||||
res.result.forEach((item) => {
|
||||
|
||||
Reference in New Issue
Block a user