mirror of
https://github.com/blossom-editor/blossom
synced 2024-11-17 22:48:03 +08:00
删除无用代码
This commit is contained in:
parent
ad0a83947b
commit
ae4b24d98a
@ -8,7 +8,6 @@ import { isNotNull } from '@renderer/assets/utils/obj'
|
||||
import { storeKey as authKey, useUserStore } from '@renderer/stores/user'
|
||||
import { storeKey as serverUrlKey } from '@renderer/stores/server'
|
||||
import Notify from '@renderer/scripts/notify'
|
||||
import { log } from 'console'
|
||||
|
||||
const userStore = useUserStore(pinia)
|
||||
|
||||
@ -97,8 +96,12 @@ export class Request {
|
||||
return Promise.reject(res)
|
||||
}
|
||||
},
|
||||
/**
|
||||
* 返回非 200 接口
|
||||
* @param err
|
||||
* @returns
|
||||
*/
|
||||
(err: any) => {
|
||||
console.log(err)
|
||||
let errorMsg = err.message
|
||||
let code = err.code
|
||||
let resp = err.response
|
||||
|
@ -387,7 +387,6 @@ const start = () => {
|
||||
* 番茄钟结束
|
||||
*/
|
||||
const stop = () => {
|
||||
console.log('清除番茄钟')
|
||||
clearInterval(bell)
|
||||
remainStr.value = formateMs(0)
|
||||
if (TomatoBellRef.value) {
|
||||
|
@ -167,9 +167,7 @@ const refreshParam = () => {
|
||||
}
|
||||
|
||||
const updParam = (paramName: string, paramValue: string) => {
|
||||
console.log(paramName, paramValue)
|
||||
paramUpdApi({ paramName: paramName, paramValue: paramValue }).then((_resp) => {
|
||||
// serverParamForm.value = resp.data
|
||||
userStore.getUserinfo()
|
||||
})
|
||||
}
|
||||
|
@ -255,7 +255,6 @@ const showPicInfo = (url: string) => {
|
||||
* @param a
|
||||
*/
|
||||
const onErrorImg = (a: Event) => {
|
||||
console.log(a.target)
|
||||
let imgEle = a.target as HTMLImageElement
|
||||
if (imgEle) {
|
||||
imgEle.src = errorImg
|
||||
|
@ -48,7 +48,6 @@ export const buildDefaultPicture = (): Picture => {
|
||||
* @returns
|
||||
*/
|
||||
export const beforeUpload: UploadProps['beforeUpload'] = (rawFile) => {
|
||||
console.log('上传图片大小限制:', picStyle.maxSize)
|
||||
if (rawFile.size / 1024 / 1024 > picStyle.maxSize) {
|
||||
Notify.error(`文件大小不能超过 ${picStyle.maxSize}MB!`, '上传失败')
|
||||
return false
|
||||
|
@ -145,7 +145,6 @@ const saveDay = async (formEl: FormInstance | undefined) => {
|
||||
if (!formEl) return
|
||||
await formEl.validate((valid, _fields) => {
|
||||
if (valid) {
|
||||
console.log(dayForm.value);
|
||||
planAddDayApi(dayForm.value).then(_resp => {
|
||||
emits('saved')
|
||||
})
|
||||
|
@ -442,7 +442,6 @@ const showExportDialog = () => {
|
||||
}
|
||||
|
||||
const exportTodo = () => {
|
||||
console.log(curTodo.value.todoId)
|
||||
if (isBlank(curTodo.value.todoId)) {
|
||||
Notify.error('请先选择待办事项再使用导出')
|
||||
return
|
||||
@ -456,7 +455,6 @@ const exportTodo = () => {
|
||||
}
|
||||
exportTodoApi(params).then((resp) => {
|
||||
exportContent.value = resp.data
|
||||
console.log(resp)
|
||||
})
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user