update:提示
This commit is contained in:
parent
6b4590bbf6
commit
8c83f116d3
@ -354,7 +354,11 @@ const handleUploadRequest = async (options: any) => {
|
||||
const formData = new FormData()
|
||||
formData.append('file', options.file)
|
||||
try {
|
||||
await importSportsHallStudentsTestData(formData)
|
||||
const res = await importSportsHallStudentsTestData(formData)
|
||||
if(res.code != 200) {
|
||||
ElMessage.error(res.message || '上传失败')
|
||||
return
|
||||
}
|
||||
ElMessage.success('导入成功')
|
||||
importDialog.visible = false
|
||||
fetchList()
|
||||
|
||||
@ -15,7 +15,7 @@ export default ({ mode }: ConfigEnv) => {
|
||||
console.log(`ENV:`, ENV)
|
||||
|
||||
return defineConfig({
|
||||
base: 'https://yuedong-wechatapplet.oss-cn-shanghai.aliyuncs.com/static/web/samart-static/202606081720/',
|
||||
base: 'https://yuedong-wechatapplet.oss-cn-shanghai.aliyuncs.com/static/web/samart-static/202606181400/',
|
||||
server: {
|
||||
host: '0.0.0.0',
|
||||
// https: false,
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user