Skip to content

Commit

Permalink
feat: v4.18.1
Browse files Browse the repository at this point in the history
  • Loading branch information
surmon-china committed Aug 20, 2023
1 parent ad20270 commit 1794ab0
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 10 deletions.
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "surmon.me",
"version": "4.18.0",
"version": "4.18.1",
"description": "Surmon.me blog",
"author": "Surmon",
"license": "MIT",
Expand All @@ -21,6 +21,7 @@
"dependencies": {
"@braintree/sanitize-url": "^6.0.4",
"@sentry/vue": "^7.64.0",
"@unhead/schema": "^1.3.5",
"@unhead/ssr": "^1.3.5",
"@unhead/vue": "^1.3.5",
"axios": "^1.4.0",
Expand Down Expand Up @@ -57,7 +58,6 @@
"sticky-events": "^3.4.12",
"swiper": "^10.2.0",
"ua-parser-js": "^1.0.35",
"unhead": "^1.3.5",
"vue": "^3.3.4",
"vue-router": "^4.2.4",
"wonderful-bing-wallpaper": "^0.3.4",
Expand Down
6 changes: 3 additions & 3 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 3 additions & 3 deletions src/components/layout/mobile/main.vue
Original file line number Diff line number Diff line change
Expand Up @@ -29,9 +29,9 @@
<div v-if="isOpenedAside" class="close-mask" @click="closeAside" />
<header-view :opened="isOpenedAside" @close="closeAside" @open="openAside" />
<main class="main-container">
<router-view name="mobile" v-slot="{ Component, route }">
<div class="route-view" v-if="route.meta.responsive">
<component :is="Component" :key="route.name" />
<router-view name="mobile" v-slot="{ Component, route: r }">
<div class="route-view" v-if="r.meta.responsive">
<component :is="Component" :key="r.name" />
</div>
<div class="fallback" v-else>
<i class="iconfont icon-desktop"></i>
Expand Down
4 changes: 2 additions & 2 deletions src/composables/head.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
*/

import { computed, ComputedGetter } from 'vue'
import { UseSeoMetaInput } from 'unhead'
import { UseSeoMetaInput } from '@unhead/schema'
import { Head, useHead as useUnhead, useSeoMeta as useUnheadSeoMeta } from '@unhead/vue'
import { useEnhancer } from '/@/app/enhancer'
import { getPageURL } from '/@/transforms/url'
Expand All @@ -26,7 +26,7 @@ export const useHead = (source: Head | ComputedGetter<Head>) => {
const DEFAULT_TITLER = (title: string) => `${title} | ${META.title}`
const DEFAULT_OG_IMAGE = getPageURL('/images/og-social-card.jpg')

export interface SeoMetaObject extends UseSeoMetaInput {
export interface SeoMetaObject extends Omit<UseSeoMetaInput, 'title'> {
title?: string
pageTitle?: string
description?: string
Expand Down

0 comments on commit 1794ab0

Please sign in to comment.