chore: update title by command

This commit is contained in:
YunYouJun
2022-04-16 23:14:48 +08:00
parent 8236d1957f
commit bc87ed50f3
4 changed files with 3 additions and 47 deletions

View File

@@ -0,0 +1 @@
SXyLwVzY6K7yEt0c

View File

@@ -1,17 +1,13 @@
<script setup lang="ts"> <script setup lang="ts">
// https://github.com/vueuse/head // https://github.com/vueuse/head
// you can use this to manipulate the document head in any components, // 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 // they will be rendered correctly in the html results with vite-ssg
useHead({ useHead({
title: '好的,今天我们来做菜!', title: '隔离食用手册',
meta: [ meta: [
{ name: 'description', content: '好的,今天我们来做菜!' }, { name: 'description', content: '好的,今天我们来做菜!' },
], ],
}) })
useWeixin()
</script> </script>
<template> <template>

View File

@@ -183,7 +183,7 @@ const clickTool = (item: StuffItem) => {
<br> <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 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> </a>
</div> </div>
</Transition> </Transition>

View File

@@ -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)
})
}
})
}
}