🐞 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
|
updateResource
|
||||||
} from '@/api/system/resource'
|
} from '@/api/system/resource'
|
||||||
import { getFaultMessage, newIP } from '@/api/system/common'
|
import { getFaultMessage, newIP } from '@/api/system/common'
|
||||||
import { deleteMaterial } from "../../../api/system/material";
|
import { deleteMaterial } from "@/api/system/material";
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
name: 'index',
|
name: 'index',
|
||||||
@@ -302,7 +302,7 @@ export default {
|
|||||||
if (this.indexSelect === 0) {
|
if (this.indexSelect === 0) {
|
||||||
return
|
return
|
||||||
} else {
|
} 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)
|
return deleteMaterial(this.dataList[this.indexSelect].id)
|
||||||
}).then(() => {
|
}).then(() => {
|
||||||
this.getDataList()
|
this.getDataList()
|
||||||
|
|||||||
Reference in New Issue
Block a user