新增题目管理路由

This commit is contained in:
jiayuqi7813
2022-07-12 03:21:13 +08:00
parent 9de0289462
commit 77f146040f
4 changed files with 104 additions and 6 deletions

View File

@@ -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'
});
}
})