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