update:提示

This commit is contained in:
ltx 2026-06-18 15:18:53 +08:00
parent 6b4590bbf6
commit 8c83f116d3
2 changed files with 6 additions and 2 deletions

View File

@ -354,7 +354,11 @@ const handleUploadRequest = async (options: any) => {
const formData = new FormData() const formData = new FormData()
formData.append('file', options.file) formData.append('file', options.file)
try { try {
await importSportsHallStudentsTestData(formData) const res = await importSportsHallStudentsTestData(formData)
if(res.code != 200) {
ElMessage.error(res.message || '上传失败')
return
}
ElMessage.success('导入成功') ElMessage.success('导入成功')
importDialog.visible = false importDialog.visible = false
fetchList() fetchList()

View File

@ -15,7 +15,7 @@ export default ({ mode }: ConfigEnv) => {
console.log(`ENV:`, ENV) console.log(`ENV:`, ENV)
return defineConfig({ 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: { server: {
host: '0.0.0.0', host: '0.0.0.0',
// https: false, // https: false,