feat:增加刷新功能
This commit is contained in:
@@ -1,7 +1,7 @@
|
|||||||
<template>
|
<template>
|
||||||
<main class="mobile-home">
|
<main class="mobile-home">
|
||||||
<div class="home-title">
|
<div class="home-title">
|
||||||
<div class="title-container">
|
<div class="title-container" @click="titleClick">
|
||||||
<img :src="getAssetsImageFile('logo/logo.png')" alt="暂无图片" class="logo"/>
|
<img :src="getAssetsImageFile('logo/logo.png')" alt="暂无图片" class="logo"/>
|
||||||
<span class="title">Sweet Hut</span>
|
<span class="title">Sweet Hut</span>
|
||||||
</div>
|
</div>
|
||||||
@@ -76,6 +76,10 @@ import { useAppStore } from '@/store/app'
|
|||||||
import { getAssetsImageFile } from '@/utils'
|
import { getAssetsImageFile } from '@/utils'
|
||||||
|
|
||||||
const appStore = useAppStore()
|
const appStore = useAppStore()
|
||||||
|
|
||||||
|
const titleClick = () => {
|
||||||
|
location.reload()
|
||||||
|
}
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<style lang="scss">
|
<style lang="scss">
|
||||||
|
|||||||
Reference in New Issue
Block a user