优化后,再次提交
This commit is contained in:
@@ -67,7 +67,7 @@
|
||||
|
||||
<script setup>
|
||||
import { ref, reactive, onMounted } from 'vue';
|
||||
import { baseUrl, getToken } from '@/request/request.js';
|
||||
import { baseUrl, getToken, toImageUrl } from '@/request/request.js';
|
||||
import { getProfileDetail, updateProfile } from '@/request/three_one_api/info.js';
|
||||
|
||||
const saving = ref(false);
|
||||
@@ -85,8 +85,7 @@ const userInfo = reactive({
|
||||
// 获取图片完整URL(用于显示)
|
||||
const getImageUrl = (path) => {
|
||||
if (!path) return '';
|
||||
if (path.startsWith('http')) return path;
|
||||
return baseUrl + path;
|
||||
return toImageUrl(path);
|
||||
};
|
||||
|
||||
// 页面加载时获取个人信息
|
||||
|
||||
Reference in New Issue
Block a user