优化后,再次提交
This commit is contained in:
@@ -38,7 +38,7 @@
|
||||
</view>
|
||||
|
||||
<!-- 新增按钮 -->
|
||||
<button class="add-btn cuIcon-add bg-blue round" @click="openAddPopup">+ 新增</button>
|
||||
<button class="add-btn cuIcon-add bg-blue round" @click="openAddPopup">新增</button>
|
||||
|
||||
<!-- 新增/编辑证照弹窗 -->
|
||||
<u-popup :show="showAddPopup" mode="center" round="20" @close="closePopup">
|
||||
@@ -181,7 +181,7 @@ import {
|
||||
updateLicense,
|
||||
deleteLicense
|
||||
} from '@/request/three_one_api/license.js';
|
||||
import { baseUrl, getToken } from '@/request/request.js';
|
||||
import { getToken, toImageUrl } from '@/request/request.js';
|
||||
|
||||
// 证照列表
|
||||
const licenseList = ref([]);
|
||||
@@ -228,8 +228,7 @@ onMounted(() => {
|
||||
// 获取图片完整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