TypeScript前端代码生成模板同步到最新
This commit is contained in:
@@ -31,7 +31,7 @@ function handleImportTable() {
|
||||
proxy.$modal.msgError("请输入建表语句")
|
||||
return
|
||||
}
|
||||
createTable({ sql: content.value }).then(res => {
|
||||
createTable({ sql: content.value, tplWebType: 'element-plus' }).then(res => {
|
||||
proxy.$modal.msgSuccess(res.msg)
|
||||
if (res.code === 200) {
|
||||
visible.value = false
|
||||
|
||||
@@ -18,6 +18,7 @@
|
||||
<el-select v-model="info.tplWebType">
|
||||
<el-option label="Vue2 Element UI 模版" value="element-ui" />
|
||||
<el-option label="Vue3 Element Plus 模版" value="element-plus" />
|
||||
<el-option label="Vue3 Element Plus TypeScript 模版" value="element-plus-typescript" />
|
||||
</el-select>
|
||||
</el-form-item>
|
||||
</el-col>
|
||||
|
||||
@@ -111,7 +111,7 @@ function handleImportTable() {
|
||||
proxy.$modal.msgError("请选择要导入的表")
|
||||
return
|
||||
}
|
||||
importTable({ tables: tableNames }).then(res => {
|
||||
importTable({ tables: tableNames, tplWebType: 'element-plus' }).then(res => {
|
||||
proxy.$modal.msgSuccess(res.msg)
|
||||
if (res.code === 200) {
|
||||
visible.value = false
|
||||
|
||||
Reference in New Issue
Block a user