新增题目管理路由
This commit is contained in:
@@ -71,10 +71,9 @@ export default {
|
||||
axios.post('/api/v1/admin/notice',this.formData).then(res => {
|
||||
if (res.data.code === 200) {
|
||||
this.dialogTableVisible = false;
|
||||
ElNotification.success({
|
||||
title: '成功',
|
||||
this.$message({
|
||||
message: '添加成功',
|
||||
duration: 2000
|
||||
type: 'success'
|
||||
});
|
||||
window.location.reload()
|
||||
}
|
||||
@@ -84,10 +83,9 @@ export default {
|
||||
axios.delete('/api/v1/admin/notice/'+row.id).then(res => {
|
||||
if (res.data.code === 200) {
|
||||
this.data.splice(this.data.indexOf(row),1);
|
||||
ElNotification.success({
|
||||
title: '成功',
|
||||
this.$message({
|
||||
message: '删除成功',
|
||||
duration: 2000
|
||||
type: 'success'
|
||||
});
|
||||
}
|
||||
})
|
||||
|
Reference in New Issue
Block a user