feature:url调整让上传文件支持/模式

This commit is contained in:
pixelMax(奇淼
2024-06-28 11:37:59 +08:00
parent 737c051466
commit 24e4d05157
5 changed files with 16 additions and 6 deletions
@@ -2,7 +2,7 @@
<div class="gva-form-box">
<el-upload
drag
:action="`${path}/autoCode/installPlugin`"
:action="`${getBaseUrl()}/autoCode/installPlugin`"
:show-file-list="false"
:on-success="handleSuccess"
:on-error="handleSuccess"
@@ -22,9 +22,8 @@
</template>
<script setup>
import { ref } from 'vue'
import { ElMessage } from 'element-plus'
const path = ref(import.meta.env.VITE_BASE_API)
import { getBaseUrl } from '@/utils/format'
const handleSuccess = (res) => {
if (res.code === 0) {