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>
<script setup lang="ts">
import { ref, computed } from 'vue'
import { computed } from 'vue'
import { useRoute } from 'vue-router'
import {
House,

View File

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

View File

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

View File

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