Skip to content

Commit

Permalink
fix: add @intlify/core-base to suppress type interence bug
Browse files Browse the repository at this point in the history
  • Loading branch information
kingyue737 committed Sep 30, 2024
1 parent d17fe0f commit 1bf6404
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 2 deletions.
3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"private": true,
"type": "module",
"packageManager": "pnpm@9.9.0",
"packageManager": "pnpm@9.11.0",
"scripts": {
"dev": "vite --open --host",
"build": "vite build",
Expand Down Expand Up @@ -30,6 +30,7 @@
},
"devDependencies": {
"@eslint/compat": "^1.1.1",
"@intlify/core-base": "^9.14.1",
"@intlify/unplugin-vue-i18n": "^2.0.0",
"@kingyue/vite-plugin-vue2-svg": "^0.6.0",
"@pinia/testing": "^0.1.5",
Expand Down
3 changes: 3 additions & 0 deletions pnpm-lock.yaml

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

1 change: 1 addition & 0 deletions src/components/layout/AppDrawerItem.vue
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
<script lang="ts">
import type { RouteConfig } from 'vue-router'
import type { PropType } from 'vue'
import type {} from '@intlify/core-base'
export default defineComponent({
name: 'AppDrawerItem',
Expand Down
2 changes: 1 addition & 1 deletion src/components/layout/ButtonSettings.vue
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ const colors = [
]
const images = [drawer1, drawer2, drawer3]
const menuShow = ref(false)
const isDark = useDark({
const isDark: WritableComputedRef<boolean> = useDark({
onChanged(dark: boolean) {
vuetify.theme.dark = dark
},
Expand Down

0 comments on commit 1bf6404

Please sign in to comment.