|
@@ -44,9 +44,7 @@
|
|
|
</el-select>
|
|
|
</el-form-item>
|
|
|
<el-form-item>
|
|
|
- <router-link :to="{path:'/goods/category'}">
|
|
|
- <el-button type="primary" plain style="margin-right:10px">返回</el-button>
|
|
|
- </router-link>
|
|
|
+ <el-button type="primary" plain style="margin-right:10px" @click="backToList">返回</el-button>
|
|
|
<el-button type="primary" @click="updateData">提交</el-button>
|
|
|
</el-form-item>
|
|
|
</el-form>
|
|
@@ -107,9 +105,7 @@ export default {
|
|
|
type: response.code * 1 === 1 ? 'success' : 'error',
|
|
|
duration: 2000
|
|
|
})
|
|
|
- setTimeout(() => {
|
|
|
- this.$router.push({ path: '/goods/category' })
|
|
|
- }, 2000)
|
|
|
+ this.backToList()
|
|
|
})
|
|
|
}
|
|
|
})
|