fix: 修复TypeScript编译警告
- 移除未使用的变量引用 - 修复路由守卫参数命名 - 清理未使用的导入
This commit is contained in:
@@ -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,
|
||||
|
||||
@@ -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`
|
||||
}
|
||||
|
||||
@@ -142,7 +142,7 @@ import {
|
||||
DataLine,
|
||||
Setting
|
||||
} from '@element-plus/icons-vue'
|
||||
import { ElMessage } from 'element-plus'
|
||||
|
||||
|
||||
const router = useRouter()
|
||||
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user