🐞 fix: 修复this指向

This commit is contained in:
砂糖
2025-08-11 11:54:09 +08:00
parent 6da197da11
commit 981c26e78d
7 changed files with 2 additions and 2 deletions

Binary file not shown.

Binary file not shown.

Binary file not shown.

View File

@@ -243,7 +243,7 @@ import {
updateResource
} from '@/api/system/resource'
import { getFaultMessage, newIP } from '@/api/system/common'
import { deleteMaterial } from "../../../api/system/material";
import { deleteMaterial } from "@/api/system/material";
export default {
name: 'index',
@@ -302,7 +302,7 @@ export default {
if (this.indexSelect === 0) {
return
} else {
this.$modal.confirm('是否确认删除钽靶编号为"' + this.dataList[this.indexSelect].id + '"的数据项?').then(function () {
this.$modal.confirm('是否确认删除钽靶编号为"' + this.dataList[this.indexSelect].id + '"的数据项?').then(() => {
return deleteMaterial(this.dataList[this.indexSelect].id)
}).then(() => {
this.getDataList()