mirror of
https://gitee.com/xiangheng/x_admin.git
synced 2025-12-24 08:12:55 +08:00
没有用的props
This commit is contained in:
@@ -13,7 +13,7 @@
|
||||
// onUnmounted(() => {
|
||||
// xErr.unListen()
|
||||
// })
|
||||
defineProps<{ msg: string }>()
|
||||
|
||||
function error() {
|
||||
throw new Error('主动抛error')
|
||||
}
|
||||
@@ -40,8 +40,6 @@ function loadError() {
|
||||
</script>
|
||||
|
||||
<template>
|
||||
<h1>{{ msg }}</h1>
|
||||
|
||||
<div class="card">
|
||||
<button class="a b" type="button" aa="11" @click="error">主动抛error</button>
|
||||
<button class="a b" type="button" aa="11" @click="yufaError">语法错误</button>
|
||||
|
||||
Reference in New Issue
Block a user