This commit is contained in:
Zhang HaoYang 2023-12-29 01:00:55 +08:00
parent 8d3c8259e8
commit 9ccc52378b

View File

@ -443,7 +443,6 @@ export default {
openAddCategoryFun(){ openAddCategoryFun(){
var _this = this; var _this = this;
_this.titlename="新增网址"; _this.titlename="新增网址";
console.log(this.List);
_this.openAddCategory=true; _this.openAddCategory=true;
}, },
// //
@ -457,7 +456,6 @@ export default {
// //
addCategory(rulelist,title){ addCategory(rulelist,title){
var _this = this; var _this = this;
console.log(this.form);
_this.$refs[rulelist].validate((valid)=>{ _this.$refs[rulelist].validate((valid)=>{
if(valid){ if(valid){
if(title == "编辑网址"){ if(title == "编辑网址"){
@ -586,6 +584,7 @@ export default {
}).then(function(res){ }).then(function(res){
var tmp = res.data; var tmp = res.data;
var tmp2 = []; var tmp2 = [];
that.Cate=[];
for(let i=0;i< tmp.length;i++){ for(let i=0;i< tmp.length;i++){
var rootName = tmp[i].name; var rootName = tmp[i].name;
var catenum = tmp[i].cateId; var catenum = tmp[i].cateId;