chore: update title by command
This commit is contained in:
@@ -1,17 +1,13 @@
|
||||
<script setup lang="ts">
|
||||
// https://github.com/vueuse/head
|
||||
// you can use this to manipulate the document head in any components,
|
||||
import { useWeixin } from './composables/weixin'
|
||||
|
||||
// they will be rendered correctly in the html results with vite-ssg
|
||||
useHead({
|
||||
title: '好的,今天我们来做菜!',
|
||||
title: '隔离食用手册',
|
||||
meta: [
|
||||
{ name: 'description', content: '好的,今天我们来做菜!' },
|
||||
],
|
||||
})
|
||||
|
||||
useWeixin()
|
||||
</script>
|
||||
|
||||
<template>
|
||||
|
||||
@@ -183,7 +183,7 @@ const clickTool = (item: StuffItem) => {
|
||||
|
||||
<br>
|
||||
<a m="t-4" border="b-1 dashed" class="inline-flex text-sm text-blue-600 dark:text-blue-400" href="https://docs.qq.com/sheet/DZUpJS0tQZm1YYWlt" target="_blank">
|
||||
干饭攻略:隔离食用手册大全
|
||||
更多干饭攻略:隔离食用手册大全
|
||||
</a>
|
||||
</div>
|
||||
</Transition>
|
||||
|
||||
@@ -1,41 +0,0 @@
|
||||
import { isClient } from '@vueuse/core'
|
||||
|
||||
const shareOptions = {
|
||||
title: '好的,今天我们来做菜',
|
||||
link: 'https://cook.yunyoujun.cn',
|
||||
imgUrl: '/favicon.svg',
|
||||
success: () => {},
|
||||
}
|
||||
|
||||
const jsApiList = [
|
||||
'updateAppMessageShareData',
|
||||
'updateTimelineShareData',
|
||||
]
|
||||
|
||||
/**
|
||||
* 微信分享
|
||||
*/
|
||||
export function useWeixin() {
|
||||
if (isClient) {
|
||||
useScriptTag('http://res.wx.qq.com/open/js/jweixin-1.6.0.js', async() => {
|
||||
const data = await fetch('http://api.welomo.com/wx/r/?token_id=12691').then(res => res.json())
|
||||
|
||||
const wx = window.wx
|
||||
if (wx) {
|
||||
wx.config({
|
||||
debug: true,
|
||||
appId: data.appId,
|
||||
timestamp: data.timestamp,
|
||||
nonceStr: data.nonceStr,
|
||||
signature: data.signature,
|
||||
jsApiList,
|
||||
})
|
||||
|
||||
wx.ready(() => {
|
||||
wx.updateAppMessageShareData(shareOptions)
|
||||
wx.updateTimelineShareData(shareOptions)
|
||||
})
|
||||
}
|
||||
})
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user