更新
This commit is contained in:
@@ -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";
|
||||
|
||||
@@ -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" />
|
||||
|
||||
@@ -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 ?? "",
|
||||
|
||||
@@ -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"
|
||||
|
||||
Reference in New Issue
Block a user