feat: 首页title自定义,新增存储路径

This commit is contained in:
Lan
2025-02-08 22:54:15 +08:00
parent 9970906873
commit 6a43e12fc4
3 changed files with 28 additions and 6 deletions
+4 -1
View File
@@ -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')