feat: 首页title自定义,新增存储路径
This commit is contained in:
@@ -30,7 +30,7 @@
|
||||
: 'text-indigo-600'
|
||||
]"
|
||||
>
|
||||
FileCodeBox
|
||||
{{config.name}}
|
||||
</h2>
|
||||
<form @submit.prevent="handleSubmit">
|
||||
<div class="mb-6 relative">
|
||||
@@ -388,6 +388,7 @@ const route = useRoute()
|
||||
|
||||
// 使用 receiveData 替代原来的 records
|
||||
const records = receiveData
|
||||
const config = JSON.parse(localStorage.getItem('config') || '{}')
|
||||
|
||||
onMounted(() => {
|
||||
const query_code = route.query.code
|
||||
@@ -401,6 +402,8 @@ watch(code, (newVal) => {
|
||||
}
|
||||
})
|
||||
|
||||
|
||||
|
||||
const handleSubmit = async () => {
|
||||
if (code.value.length !== 5) {
|
||||
alertStore.showAlert('请输入5位取件码', 'error')
|
||||
|
||||
Reference in New Issue
Block a user