This commit is contained in:
yziiy
2026-01-22 09:44:05 +08:00
parent 2232b18968
commit 33c218f0bb
4 changed files with 12 additions and 4 deletions

View File

@@ -1,7 +1,7 @@
// export const URL = "https://yushengapi.qxyushen.top";
export const URL = "https://yushengapi.qxyushen.top";
// 预测版
// export const URL = "https://vsyusheng.qxhs.xyz";
// 测试
export const URL = "https://test.vespa.qxyushen.top";
// export const URL = "https://test.vespa.qxyushen.top";
// 声网appId 在这里换
export const appIdBySw = "02f7339ec98947deaeab173599891932";

View File

@@ -1,4 +1,5 @@
<script setup lang="ts">
import uploadImage from '@/components/UploadImage/index.vue';
import { ref } from "vue";
const ruleFormRef = ref();
const formRules = ref({});
@@ -21,6 +22,9 @@ const newFormInline = ref(
function getRef() {
return ruleFormRef.value;
}
function handleFileSuccess(list) {
newFormInline.value.avatar = list.join(',')
}
defineExpose({ getRef });
</script>
@@ -32,6 +36,9 @@ defineExpose({ getRef });
<el-form-item label="用户昵称" prop="nickname">
<el-input v-model="newFormInline.nickname"></el-input>
</el-form-item>
<el-form-item label="用户头像" prop="avatar">
<uploadImage @handleSuccess="handleFileSuccess" :limit="1" :echoUrl="newFormInline.avatar" />
</el-form-item>
<el-form-item label="性别" prop="sex">
<el-radio-group v-model="newFormInline.sex">
<el-radio label="保密" :value="0" />

View File

@@ -227,6 +227,7 @@ export function useData() {
props: {
formInline: {
mobile: user_info?.mobile ?? "",
avatar: user_info?.avatar ?? "",
nickname: user_info?.nickname ?? "",
real_name: follow_num?.real_name ?? "",
card_id: follow_num?.card_id ?? "",

View File

@@ -39,8 +39,8 @@ export default ({ mode }: ConfigEnv): UserConfigExport => {
// "Access-Control-Allow-Origin",
// "http://adminvs.qxhs.xyz"
// );
// res.setHeader('Access-Control-Allow-Origin', 'http://yushenggliht.qxyushen.top');
res.setHeader('Access-Control-Allow-Origin', 'https://test.vespa.qxyushen.top');
res.setHeader('Access-Control-Allow-Origin', 'http://yushenggliht.qxyushen.top');
// res.setHeader('Access-Control-Allow-Origin', 'https://test.vespa.qxyushen.top');
res.setHeader(
"Access-Control-Allow-Methods",
"GET, POST, PUT, DELETE, OPTIONS"