add:fronted
This commit is contained in:
@@ -58,7 +58,6 @@ async def get_expire_info(expire_value: int, expire_style: str):
|
|||||||
expired_at = now + datetime.timedelta(days=1)
|
expired_at = now + datetime.timedelta(days=1)
|
||||||
if not code:
|
if not code:
|
||||||
code = await get_random_code()
|
code = await get_random_code()
|
||||||
print(expire_style, expire_value, expired_at, expired_count, used_count, code)
|
|
||||||
return expired_at, expired_count, used_count, code
|
return expired_at, expired_count, used_count, code
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
+1
-1
@@ -69,5 +69,5 @@ async def select_file(data: SelectFileModel, ip: str = Depends(error_ip_limit)):
|
|||||||
'code': file_code.code,
|
'code': file_code.code,
|
||||||
'name': file_code.prefix + file_code.suffix,
|
'name': file_code.prefix + file_code.suffix,
|
||||||
'size': file_code.size,
|
'size': file_code.size,
|
||||||
'text': await file_storage.get_file_url(file_code),
|
'text': file_code.text if file_code.text is not None else await file_storage.get_file_url(file_code),
|
||||||
})
|
})
|
||||||
|
|||||||
@@ -57,7 +57,7 @@ const handleSubmitShareText = ()=>{
|
|||||||
:input-style="{'border-radius':'20px','border':'1px dashed var(--el-border-color)','box-shadow':'none'}"
|
:input-style="{'border-radius':'20px','border':'1px dashed var(--el-border-color)','box-shadow':'none'}"
|
||||||
>
|
>
|
||||||
</el-input>
|
</el-input>
|
||||||
<el-button @click="handleSubmitShareText" style="position: absolute;right: 0;top: 0;border-radius: 0 20px 0 20px;margin: 1px;background: rgba(255,255,255,0.2)" size="large">发送</el-button>
|
<el-button @click="handleSubmitShareText" style="position: absolute;right: 0;top: 0;border-radius: 0 20px 0 20px;margin: 1px;background: rgba(255,255,255,0.2)" size="large">分享</el-button>
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user