|
|
|
@ -47,7 +47,7 @@ |
|
|
|
|
</div> |
|
|
|
|
<div class="btns" v-if="editing"> |
|
|
|
|
<el-button @click="editing = false">取 消</el-button> |
|
|
|
|
<el-button type="primary" @click="addKeyword">确 定</el-button> |
|
|
|
|
<el-button type="primary" @click="confirmData">确 定</el-button> |
|
|
|
|
</div> |
|
|
|
|
</el-card> |
|
|
|
|
</el-col> |
|
|
|
@ -148,6 +148,7 @@ export default { |
|
|
|
|
}, |
|
|
|
|
// 保存数据介绍和数据源 |
|
|
|
|
saveType(){ |
|
|
|
|
|
|
|
|
|
const id = this.categoryId // 获取当前分类id |
|
|
|
|
this.$post(this.api.updateCategory,{ |
|
|
|
|
id, |
|
|
|
@ -158,7 +159,7 @@ export default { |
|
|
|
|
this.introduceText = this.introduce |
|
|
|
|
this.editing = false |
|
|
|
|
this.edited = true |
|
|
|
|
this.getData() |
|
|
|
|
// this.getData() |
|
|
|
|
}).catch(res => {}) |
|
|
|
|
}, |
|
|
|
|
// 删除关键词 |
|
|
|
|