|
|
@@ -8,6 +8,7 @@ import { getNews, type NewsData, type NewsResponseData } from '@/api/home'
|
|
|
import { getFileExtension } from '@/utils/getFileExtension'
|
|
|
import { queryFieldMethod } from '@/utils/queryFieldMethod'
|
|
|
import { useSearchStore } from '@/stores/searchStore'
|
|
|
+import homeBG from '/public/static/首页背景.png'
|
|
|
|
|
|
const searchStore = useSearchStore();
|
|
|
|
|
|
@@ -135,7 +136,11 @@ init()
|
|
|
</script>
|
|
|
|
|
|
<template>
|
|
|
- <div class="headContainer w-99vw" style="background-image:url('/static/首页背景.png');background-size: 100% 100%;object-fit: fill">
|
|
|
+ <div class="headContainer w-99vw" :style="{
|
|
|
+ backgroundImage:`url(${homeBG})`,
|
|
|
+ backgroundSize: '100% 100%',
|
|
|
+ objectFit: 'fill'
|
|
|
+ }">
|
|
|
<!-- 标题部分登录跳转 -->
|
|
|
<div class="headTitle">
|
|
|
<text>欢迎来到怀化高新区企业信用分级分类网</text>
|