增加自动打包插件功能
This commit is contained in:
@@ -132,3 +132,11 @@ export const installPlug = (data) => {
|
||||
data
|
||||
})
|
||||
}
|
||||
|
||||
export const pubPlug = (params) => {
|
||||
return service({
|
||||
url: '/autoCode/pubPlug',
|
||||
method: 'post',
|
||||
params
|
||||
})
|
||||
}
|
||||
|
37
web/src/view/systemTools/pubPlug/pubPlug.vue
Normal file
37
web/src/view/systemTools/pubPlug/pubPlug.vue
Normal file
@@ -0,0 +1,37 @@
|
||||
<template>
|
||||
<div class="gva-plugin-pub">
|
||||
<WarningBar title="目前只支持标准插件(通过插件模板生成的标准目录插件),非标准插件请自行打包" />
|
||||
<div class="plugin-pub-btn-list">
|
||||
<el-input v-model="plugName" placeholder="插件模板处填写的【插件名】" />
|
||||
<el-button type="primary" @click="pubPlugin">打包插件</el-button>
|
||||
</div>
|
||||
</div>
|
||||
</template>
|
||||
|
||||
<script setup>
|
||||
import { ref } from 'vue'
|
||||
import WarningBar from '@/components/warningBar/warningBar.vue'
|
||||
import { pubPlug } from '@/api/autoCode.js'
|
||||
import { ElMessage } from 'element-plus'
|
||||
const plugName = ref('')
|
||||
|
||||
const pubPlugin = async() => {
|
||||
const res = await pubPlug({ plugName: plugName.value })
|
||||
if (res.code === 0) {
|
||||
ElMessage.success(res.msg)
|
||||
}
|
||||
}
|
||||
|
||||
</script>
|
||||
|
||||
<style lang="scss" scope>
|
||||
.gva-plugin-pub {
|
||||
background-color: white;
|
||||
padding: 20px;
|
||||
}
|
||||
.plugin-pub-btn-list{
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 12px;
|
||||
}
|
||||
</style>
|
Reference in New Issue
Block a user