2023-11-16-dist
This commit is contained in:
@@ -51,6 +51,7 @@
|
||||
import { defineComponent,ref,createVNode,watch,nextTick,inject} from 'vue'
|
||||
import { Https } from "@/tool/https";
|
||||
import {dataURLtoFile,base64toFile} from "@/tool/util"
|
||||
import { ExclamationCircleOutlined } from '@ant-design/icons-vue';
|
||||
import { getCookie } from "@/tool/cookie";
|
||||
import 'vue-cropper/dist/index.css'
|
||||
import { VueCropper } from "vue-cropper";
|
||||
@@ -181,6 +182,7 @@ export default defineComponent({
|
||||
if(index == -1){
|
||||
if(this.itemName == ''){
|
||||
message.warning(this.t('Habit.jsContent2'));
|
||||
return
|
||||
}else{
|
||||
|
||||
if(item){
|
||||
@@ -264,6 +266,25 @@ export default defineComponent({
|
||||
this.getClass()
|
||||
}
|
||||
).catch((res)=>{
|
||||
if(res.errCode === 1){
|
||||
let _this = this
|
||||
Modal.confirm({
|
||||
title: res.errMsg,
|
||||
icon: createVNode(ExclamationCircleOutlined),
|
||||
okText: 'Yes',
|
||||
cancelText: 'No',
|
||||
mask:false,
|
||||
zIndex:99999,
|
||||
// centered:true,
|
||||
onOk() {
|
||||
data.deleteConfirm = 1
|
||||
_this.deleteClass(data)
|
||||
},
|
||||
onCancel(){
|
||||
|
||||
}
|
||||
});
|
||||
}
|
||||
});
|
||||
},
|
||||
getClass(){
|
||||
|
||||
Reference in New Issue
Block a user