chore: 清理未使用变量

This commit is contained in:
Cassianvale
2025-03-11 13:09:51 +08:00
parent a4a93973d2
commit f86f004181
3 changed files with 2 additions and 12 deletions

View File

@@ -77,7 +77,7 @@
</template> </template>
<script setup lang="ts"> <script setup lang="ts">
import { ref, reactive, onMounted, h } from 'vue'; import { ref, reactive, onMounted } from 'vue';
import { useRouter } from 'vue-router'; import { useRouter } from 'vue-router';
import { import {
NCard, NCard,

View File

@@ -106,13 +106,6 @@ import {
import { updateMarketTimeInfo } from '@/utils'; import { updateMarketTimeInfo } from '@/utils';
import type { MarketTimeInfo, MarketStatus } from '@/types'; import type { MarketTimeInfo, MarketStatus } from '@/types';
const props = defineProps({
isMobile: {
type: Boolean,
default: false
}
});
const marketInfo = ref<MarketTimeInfo>({ const marketInfo = ref<MarketTimeInfo>({
currentTime: '', currentTime: '',
cnMarket: { isOpen: false, nextTime: '' }, cnMarket: { isOpen: false, nextTime: '' },

View File

@@ -152,7 +152,7 @@
</template> </template>
<script setup lang="ts"> <script setup lang="ts">
import { ref, onMounted, h, computed, onBeforeUnmount } from 'vue'; import { ref, onMounted, computed, onBeforeUnmount } from 'vue';
import { import {
NLayout, NLayout,
NLayoutContent, NLayoutContent,
@@ -166,7 +166,6 @@ import {
NButton, NButton,
NEmpty, NEmpty,
useMessage, useMessage,
useNotification,
NSpace, NSpace,
NText, NText,
NDataTable, NDataTable,
@@ -177,7 +176,6 @@ import { useClipboard } from '@vueuse/core'
import { import {
DocumentTextOutline as DocumentTextIcon, DocumentTextOutline as DocumentTextIcon,
DownloadOutline as DownloadIcon, DownloadOutline as DownloadIcon,
NotificationsOutline as NotificationsIcon
} from '@vicons/ionicons5'; } from '@vicons/ionicons5';
import MarketTimeDisplay from './MarketTimeDisplay.vue'; import MarketTimeDisplay from './MarketTimeDisplay.vue';
@@ -194,7 +192,6 @@ import { validateMultipleStockCodes, MarketType } from '@/utils/stockValidator';
// 使用Naive UI的组件API // 使用Naive UI的组件API
const message = useMessage(); const message = useMessage();
const notification = useNotification();
const { copy } = useClipboard(); const { copy } = useClipboard();
// 从环境变量获取的默认配置 // 从环境变量获取的默认配置