Commit 939952af by 无尘

fix: 修改标签编辑

parent 67543581
......@@ -4,7 +4,7 @@
* @Author: 无尘
* @Date: 2020-09-01 17:16:25
* @LastEditors: 无尘
* @LastEditTime: 2020-09-15 11:38:44
* @LastEditTime: 2020-09-15 13:43:32
-->
<!--
......@@ -131,7 +131,9 @@ export default {
mounted() {
const that = this;
if (Object.keys(that.editRow).length) {
that.form = JSON.parse(JSON.stringify(that.editRow));
that.$nextTick(() => {
that.form = JSON.parse(JSON.stringify(that.editRow));
});
}
},
// methods
......@@ -250,7 +252,9 @@ export default {
getTagClassify(para)
.then(res => {
that.tagsClassifyData = res.result || [];
that.currentCategoryId ? that.form.categoryId = that.currentCategoryId : '';
that.$nextTick(() => {
that.currentCategoryId ? that.form.categoryId = that.currentCategoryId : '';
});
})
.catch(function(error) {
that.currentCategoryId ? that.form.categoryId = that.currentCategoryId : '';
......@@ -261,7 +265,7 @@ export default {
editRow(val) {
const that = this;
if (Object.keys(val).length) {
that.$nextTick(()=>{
that.$nextTick(() => {
that.form = JSON.parse(JSON.stringify(val));
});
}
......
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