Commit 911d453d by qinjianhui

fix: 解决Eslint报错

parent ab0a5ccb
......@@ -143,7 +143,7 @@ const rules = reactive<FormRules<PasswordForm>>({
message: '请再次输入密码',
},
{
validator: (rule, value, callback) => {
validator: (_rule, value, callback) => {
if (value !== passwordForm.value.newPwd) {
callback(new Error('两次密码不一致'))
} else {
......
......@@ -4,18 +4,5 @@
</div>
</template>
<script setup lang="ts">
import { defineProps } from 'vue'
const prop = defineProps({
// 表头
header: {
type: Array,
default: () => [],
},
// 数据
data: {
type: Array,
default: () => [],
},
})
</script>
<style lang="scss" scoped></style>
\ No newline at end of file
......@@ -52,7 +52,7 @@ const router = createRouter({
},
],
})
router.beforeEach((to, from, next) => {
router.beforeEach((to, _from, next) => {
const token = getToken()
if (!token && to.path !== '/user/login') {
next({ path: '/user/login' })
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment