Commit 40a2f3ee by member

链接小工具修复错误提示

parent a79f4a9c
......@@ -412,6 +412,7 @@ import GoodsTree from './goods-tree';
// import axios from 'axios'
import qs from 'qs';
import { setTimeout } from 'timers';
export default {
name: 'links-tool',
......@@ -1505,7 +1506,9 @@ export default {
// 确认操作
confirmLinkSelect() {
var that = this
setTimeout(_ => {
var that = this;
// 如果选择 h5 判断选择的链接
if (that.oneLevelTypeValue == 5) {
......@@ -1653,6 +1656,7 @@ export default {
tagid: this.cardUrl,
title: this.tagName
};
console.log(this.cardUrl);
if (this.cardUrl) {
this.transData();
} else {
......@@ -1719,7 +1723,7 @@ export default {
message: "请选择链接"
})
}
});
},
getMallId(item) {
......@@ -1799,10 +1803,9 @@ export default {
// 触发父组件方法,传递参数
transData() {
console.log(this.selectLinkObj);
this.$emit('linkSelect', this.selectLinkObj);
this.$emit('update:linkVisible', false);
// this.resetAll();
this.resetAll();
},
// 获取一级列表
......
<template>
<!-- 链接小工具 -->
<div class="link-tools-contain">
......@@ -383,6 +382,7 @@ import GoodsTree from './goods-tree';
// import axios from 'axios'
import qs from 'qs';
import { setTimeout } from 'timers';
export default {
name: 'links-tool',
......@@ -1476,7 +1476,9 @@ export default {
// 确认操作
confirmLinkSelect() {
var that = this
setTimeout(_ => {
var that = this;
// 如果选择 h5 判断选择的链接
if (that.oneLevelTypeValue == 5) {
......@@ -1624,6 +1626,7 @@ export default {
tagid: this.cardUrl,
title: this.tagName
};
console.log(this.cardUrl);
if (this.cardUrl) {
this.transData();
} else {
......@@ -1690,7 +1693,7 @@ export default {
message: "请选择链接"
})
}
});
},
getMallId(item) {
......@@ -1770,10 +1773,9 @@ export default {
// 触发父组件方法,传递参数
transData() {
console.log(this.selectLinkObj);
this.$emit('linkSelect', this.selectLinkObj);
this.$emit('update:linkVisible', false);
// this.resetAll();
this.resetAll();
},
// 获取一级列表
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment