修复代码生成点击多次表修改数据不变化的问题

This commit is contained in:
RuoYi
2020-07-02 16:12:03 +08:00
parent 0788a57bec
commit 7549c904f2
3 changed files with 4 additions and 4 deletions

View File

@@ -147,8 +147,8 @@ export default {
info: {}
};
},
beforeCreate() {
const { tableId } = this.$route.query;
created() {
const tableId = this.$route.params && this.$route.params.tableId;
if (tableId) {
// 获取表详细信息
getGenTable(tableId).then(res => {