mirror of
https://github.com/cool-team-official/cool-admin-vue.git
synced 2026-02-05 15:45:36 +00:00
优化
This commit is contained in:
parent
7c79a88c18
commit
49cf3cc0db
@ -24,6 +24,7 @@ import { startsWith } from 'lodash-es';
|
|||||||
import { useI18n } from 'vue-i18n';
|
import { useI18n } from 'vue-i18n';
|
||||||
import { ElMessageBox } from 'element-plus';
|
import { ElMessageBox } from 'element-plus';
|
||||||
import AiCodeDev from '../components/ai-code/dev.vue';
|
import AiCodeDev from '../components/ai-code/dev.vue';
|
||||||
|
import { ctx } from 'virtual:ctx';
|
||||||
|
|
||||||
const { router, service, refs, setRefs } = useCool();
|
const { router, service, refs, setRefs } = useCool();
|
||||||
const menu = useMenu();
|
const menu = useMenu();
|
||||||
@ -95,6 +96,18 @@ async function onMessage({
|
|||||||
})
|
})
|
||||||
);
|
);
|
||||||
|
|
||||||
|
if (ctx.serviceLang == 'Java') {
|
||||||
|
loader.setText(t('创建 Java 文件'));
|
||||||
|
|
||||||
|
// 创建后端文件
|
||||||
|
await service.base.coding.createCode({
|
||||||
|
codes: data.files.filter(e => {
|
||||||
|
return startsWith(e.path, 'java');
|
||||||
|
})
|
||||||
|
});
|
||||||
|
}
|
||||||
|
|
||||||
|
if (ctx.serviceLang == 'Node') {
|
||||||
loader.setText(t('创建 Node 文件'));
|
loader.setText(t('创建 Node 文件'));
|
||||||
|
|
||||||
// 创建后端文件
|
// 创建后端文件
|
||||||
@ -110,6 +123,7 @@ async function onMessage({
|
|||||||
};
|
};
|
||||||
})
|
})
|
||||||
});
|
});
|
||||||
|
}
|
||||||
|
|
||||||
loader.setText(t('正在重启服务'));
|
loader.setText(t('正在重启服务'));
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user