diff --git a/package.json b/package.json index 2433fa2..4e0fb32 100644 --- a/package.json +++ b/package.json @@ -40,9 +40,9 @@ "dev": "vite --mode dev --port 9980", "dev:test": "vite --mode test", "dev:prod": "vite --mode prod", - "build": "vue-tsc --noEmit && vite build --mode prod", - "build:dev": "vue-tsc --noEmit && vite build --mode dev", - "build:test": "vue-tsc --noEmit && vite build --mode test", + "build": "vite build --mode prod", + "build:dev": "vite build --mode dev", + "build:test": "vite build --mode test", "preview": "vite preview --port 9981", "lint": "eslint . && vue-tsc --noEmit", "lint:fix": "eslint . --fix", diff --git a/src/views/setting/dictionary/index.vue b/src/views/setting/dictionary/index.vue index 243f758..fbc0d41 100644 --- a/src/views/setting/dictionary/index.vue +++ b/src/views/setting/dictionary/index.vue @@ -3,13 +3,15 @@ import type { DataTableColumns } from 'naive-ui' import CopyText from '@/components/custom/CopyText.vue' import { useBoolean } from '@/hooks' import { fetchDictList } from '@/service' -import { getDictByNet } from '@/utils' +import { useDictStore } from '@/store' import { NButton, NFlex, NPopconfirm } from 'naive-ui' import DictModal from './components/DictModal.vue' const { bool: dictLoading, setTrue: startDictLoading, setFalse: endDictLoading } = useBoolean(false) const { bool: contentLoading, setTrue: startContentLoading, setFalse: endContentLoading } = useBoolean(false) +const { getDictByNet } = useDictStore() + const dictRef = ref>() const dictContentRef = ref>()