fix: vercel rewrite and import error

This commit is contained in:
AkagiYui 2023-06-24 03:58:44 +08:00
parent 8cc0b9bb2e
commit 1669d20807
2 changed files with 5 additions and 2 deletions

View File

@ -1,8 +1,8 @@
<script setup lang="ts">
import { ref } from 'vue'
import { h, Component } from 'vue'
import { h, type Component } from 'vue'
import { RouterLink } from 'vue-router'
import { NIcon } from 'naive-ui'
import { NIcon, type MenuOption } from 'naive-ui'
import {
HomeOutline,
CaretDownOutline,

3
vercel.json Normal file
View File

@ -0,0 +1,3 @@
{
"rewrites": [{ "source": "/:path*", "destination": "/index.html" }]
}