提交 b1c024a9 编写于 作者: Mr.奇淼('s avatar Mr.奇淼(

修复自动化代码复用不切换的bug

上级 c431e5e9
......@@ -192,7 +192,7 @@ import PreviewCodeDialog from '@/view/systemTools/autoCode/component/previewCode
import { toUpperCase, toHump, toSQLLine, toLowerCase } from '@/utils/stringFun'
import { createTemp, getDB, getTable, getColumn, preview, getMeta, getPackageApi } from '@/api/autoCode'
import { getDict } from '@/utils/dictionary'
import { ref, getCurrentInstance, reactive } from 'vue'
import { ref, getCurrentInstance, reactive, watch } from 'vue'
import { useRoute, useRouter } from 'vue-router'
import { ElMessage } from 'element-plus'
......@@ -475,6 +475,10 @@ const init = () => {
}
init()
watch(() => route.params.id, (id) => {
init()
})
</script>
<script>
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册