更新测试

This commit is contained in:
yziiy
2025-11-10 11:05:39 +08:00
parent c6219fe6ad
commit e243d5b806
3 changed files with 13 additions and 3 deletions

View File

@@ -1,4 +1,4 @@
export const URL = "http://1.13.101.98";
export const URL = "http://test.vespa.xscmmidi.site";
// https://vespa.qxyushen.top 正式
// http://1.13.101.98
// https://test.vespa.xscmmidi.site

View File

@@ -85,7 +85,13 @@ const handleCheckedCitiesChange = (value) => {
newFormInline.value.power_ids = ''
}
}
const handlePlayEnterImageSuccess = (value) => {
if (value.length) {
newFormInline.value.enter_image = value.join(',')
} else {
newFormInline.value.enter_image = ''
}
}
onBeforeMount(() => {
getList()
})
@@ -138,5 +144,9 @@ defineExpose({ getRef });
<el-form-item label="专属徽章" v-if="checkedCities.includes(1)" prop="play_image">
<uploadImage @handleSuccess="handlePlayImageSuccess" :limit="1" :echoUrl="newFormInline.play_image" />
</el-form-item>
<el-form-item label="入场特效(mp4)" v-if="checkedCities.includes(3)" prop="enter_image">
<uploadImage @handleSuccess="handlePlayEnterImageSuccess" acceptType=".png,.jepg,.jpg" :limit="1"
:echoUrl="newFormInline.enter_image" />
</el-form-item>
</el-form>
</template>

View File

@@ -38,7 +38,7 @@ export default ({ mode }: ConfigEnv): UserConfigExport => {
// 设置CORS头 https://admin.qxyushen.top
// https://test.vespa.qxyushen.top
// 'http://admin.vespa.xscmmidi.site'
res.setHeader('Access-Control-Allow-Origin', 'http://admin.vespa.xscmmidi.site');
res.setHeader('Access-Control-Allow-Origin', 'http://test.vespa.qxyushen.top');
res.setHeader('Access-Control-Allow-Methods', 'GET, POST, PUT, DELETE, OPTIONS');
res.setHeader('Access-Control-Allow-Headers', 'Content-Type, Authorization');
res.end();