RuoYi
2020-06-24 7a9564ced517f2534721e70f331a0b8f8422a1f1
修复代码生成点击多次表修改数据不变化的问题
已修改3个文件
8 ■■■■ 文件已修改
ruoyi-ui/src/router/index.js 2 ●●● 补丁 | 查看 | 原始文档 | blame | 历史
ruoyi-ui/src/views/tool/gen/editTable.vue 4 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
ruoyi-ui/src/views/tool/gen/index.vue 2 ●●● 补丁 | 查看 | 原始文档 | blame | 历史
ruoyi-ui/src/router/index.js
@@ -111,7 +111,7 @@
    hidden: true,
    children: [
      {
        path: 'edit',
        path: 'edit/:tableId(\\d+)',
        component: (resolve) => require(['@/views/tool/gen/editTable'], resolve),
        name: 'GenEdit',
        meta: { title: '修改生成配置' }
ruoyi-ui/src/views/tool/gen/editTable.vue
@@ -147,8 +147,8 @@
      info: {}
    };
  },
  beforeCreate() {
    const { tableId } = this.$route.query;
  created() {
    const tableId = this.$route.params && this.$route.params.tableId;
    if (tableId) {
      // 获取表详细信息
      getGenTable(tableId).then(res => {
ruoyi-ui/src/views/tool/gen/index.vue
@@ -270,7 +270,7 @@
    /** 修改按钮操作 */
    handleEditTable(row) {
      const tableId = row.tableId || this.ids[0];
      this.$router.push({ path: "/gen/edit", query: { tableId: tableId } });
      this.$router.push("/gen/edit/" + tableId);
    },
    /** 删除按钮操作 */
    handleDelete(row) {