[F] Fix build
This commit is contained in:
+9
-3
@@ -28,9 +28,11 @@
|
||||
</template>
|
||||
|
||||
<script lang="ts">
|
||||
import { Component, Vue, Prop } from 'vue-facing-decorator'
|
||||
import { ComponentPublicInstance } from 'vue';
|
||||
import { Component, Vue } from 'vue-facing-decorator'
|
||||
import router from "@/scripts/router";
|
||||
import {RouteLocationNormalized} from "vue-router";
|
||||
import { RouteLocationNormalized, RouteLocationNormalizedLoaded, Router } from "vue-router";
|
||||
import { TranslateResult } from "vue-i18n";
|
||||
|
||||
@Component
|
||||
export default class App extends Vue
|
||||
@@ -43,6 +45,10 @@ export default class App extends Vue
|
||||
|
||||
menuOpen = false
|
||||
|
||||
declare $t: (arg: string) => TranslateResult
|
||||
declare $route: RouteLocationNormalizedLoaded
|
||||
declare $router: Router
|
||||
|
||||
showMenu(): void
|
||||
{
|
||||
this.menuOpen = !this.menuOpen
|
||||
@@ -90,7 +96,7 @@ export default class App extends Vue
|
||||
calculateBookmarkCss(): void
|
||||
{
|
||||
if (this.currentRoute in this.$refs)
|
||||
this.currentLink = (this.$refs[this.currentRoute] as Vue).$el
|
||||
this.currentLink = (this.$refs[this.currentRoute] as ComponentPublicInstance).$el
|
||||
else return
|
||||
|
||||
// https://developer.mozilla.org/zh-CN/docs/Web/API/Element/getBoundingClientRect
|
||||
|
||||
@@ -22,6 +22,9 @@ import {BlogMeta} from "@/scripts/models";
|
||||
import {Ref, ref, computed, onMounted} from "vue";
|
||||
import {hosts} from "@/scripts/constants";
|
||||
import {globals} from "@/scripts/global";
|
||||
import {Router} from "vue-router";
|
||||
|
||||
let $router: Router
|
||||
|
||||
const p = defineProps<{
|
||||
post?: string,
|
||||
|
||||
Reference in New Issue
Block a user