update: The code structure is finished, and the project can run successfully

This commit is contained in:
QM303176530
2020-04-05 16:19:34 +08:00
parent 08ff55ffce
commit c755120c8d
16 changed files with 53 additions and 39 deletions

View File

@@ -195,7 +195,7 @@ export default {
})
.then(async () => {
const res = await deleteApi(row)
if (res.success) {
if (res.code == 0) {
this.$message({
type: 'success',
message: '删除成功!'
@@ -217,7 +217,7 @@ export default {
case 'addApi':
{
const res = await createApi(this.form)
if (res.success) {
if (res.code == 0) {
this.$message({
type: 'success',
message: '添加成功',
@@ -232,7 +232,7 @@ export default {
case 'edit':
{
const res = await updateApi(this.form)
if (res.success) {
if (res.code == 0) {
this.$message({
type: 'success',
message: '添加成功',