fix: remove /

This commit is contained in:
Lan
2025-03-06 00:25:18 +08:00
parent fb331a9f45
commit 64e8d8c117
5 changed files with 15 additions and 15 deletions
+3 -3
View File
@@ -295,13 +295,13 @@ const handleSubmit = async () => {
inputStatus.value.loading = true
try {
const res = await api.post('/share/select/', {
const res = await api.post('share/select/', {
code: code.value
})
if (res.code === 200) {
if (res.detail) {
const isFile = res.detail.text.startsWith('/share/download') || res.detail.name !== 'Text'
const isFile = res.detail.text.startsWith('share/download') || res.detail.name !== 'Text'
const newFileData = {
id: Date.now(),
code: res.detail.code,
@@ -368,7 +368,7 @@ const toggleDrawer = () => {
}
const toSend = () => {
router.push('/send')
router.push('send')
}
const getQRCodeValue = (record) => {