fix: 修复TypeScript编译警告

- 移除未使用的变量引用
- 修复路由守卫参数命名
- 清理未使用的导入
This commit is contained in:
2026-03-09 14:10:28 +08:00
parent 6c2ab8b414
commit 9e56eff874
4 changed files with 7 additions and 7 deletions

View File

@@ -79,7 +79,7 @@
</template> </template>
<script setup lang="ts"> <script setup lang="ts">
import { ref, computed } from 'vue' import { computed } from 'vue'
import { useRoute } from 'vue-router' import { useRoute } from 'vue-router'
import { import {
House, House,

View File

@@ -51,7 +51,7 @@ const router = createRouter({
}) })
// 路由守卫 - 设置页面标题 // 路由守卫 - 设置页面标题
router.beforeEach((to, from, next) => { router.beforeEach((to, _from, next) => {
if (to.meta.title) { if (to.meta.title) {
document.title = `${to.meta.title} - WeCom Middleware` document.title = `${to.meta.title} - WeCom Middleware`
} }

View File

@@ -142,7 +142,7 @@ import {
DataLine, DataLine,
Setting Setting
} from '@element-plus/icons-vue' } from '@element-plus/icons-vue'
import { ElMessage } from 'element-plus'
const router = useRouter() const router = useRouter()

View File

@@ -264,10 +264,10 @@ const getStatusText = (status: string) => {
return texts[status] || status return texts[status] || status
} }
const showPairingDetail = (pairing: PairingRequest) => { // const showPairingDetail = (pairing: PairingRequest) => {
currentPairing.value = pairing // currentPairing.value = pairing
detailDialogVisible.value = true // detailDialogVisible.value = true
} // }
const approvePairing = (pairing: PairingRequest) => { const approvePairing = (pairing: PairingRequest) => {
currentPairing.value = pairing currentPairing.value = pairing