🐞 fix: 修复this指向
This commit is contained in:
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user