Refactor API requests and update component imports
This commit is contained in:
@ -4,7 +4,7 @@
|
||||
<div class="mb-[40px] flex flex-col items-start justify-between gap-[30px] lg:flex-row">
|
||||
<!-- 左侧 Logo -->
|
||||
<div class="mx-auto w-[200px] shrink-0 lg:mx0">
|
||||
<img src="@/assets/images/logo5.png" class="h-auto w-full" />
|
||||
<img src="~/assets/images/logo5.png" class="h-auto w-full" />
|
||||
</div>
|
||||
|
||||
<!-- 中间部分 -->
|
||||
@ -52,8 +52,8 @@
|
||||
<script setup lang="ts">
|
||||
import { reactive, ref } from 'vue'
|
||||
|
||||
import { getSettingPage } from '@/api/home/index'
|
||||
import { PageResultIndexSettingRespVO } from '@/api/home/type'
|
||||
import { getSettingPage } from '~/api/home/index'
|
||||
import type { PageResultIndexSettingRespVO } from '~/api/home/type'
|
||||
|
||||
// 导航数据
|
||||
// const columns = [
|
||||
@ -70,11 +70,11 @@
|
||||
// 二维码数据(需要替换真实图片路径)
|
||||
// const qrcodes = [
|
||||
// {
|
||||
// img: new URL('@/assets/images/logo2.png', import.meta.url).href,
|
||||
// img: new URL('~/assets/images/logo2.png', import.meta.url).href,
|
||||
// text: '抖音电商关注官方号',
|
||||
// },
|
||||
// {
|
||||
// img: new URL('@/assets/images/logo2.png', import.meta.url).href,
|
||||
// img: new URL('~/assets/images/logo2.png', import.meta.url).href,
|
||||
// text: '微信扫码关注官方助手',
|
||||
// },
|
||||
// ]
|
||||
@ -122,7 +122,7 @@
|
||||
if (item.content && (item.innerType === 3 || item.innerType === 2)) {
|
||||
window.open(item.content, '_blank')
|
||||
} else if (item.content && (item.innerType === 4 || item.innerType === 0)) {
|
||||
window.open(`/editor-view?content=${encodeURIComponent(item.content)}`, '_blank')
|
||||
navigateTo(`/editor-view?content=${encodeURIComponent(item.content)}`)
|
||||
} else if (item.innerType === 1 && item.content) {
|
||||
showViewer.value = true
|
||||
previewImgList.value = [item.content]
|
||||
|
||||
Reference in New Issue
Block a user