feature:url调整让上传文件支持/模式
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user