删除无用代码

This commit is contained in:
xiaozzzi 2023-10-12 18:45:33 +08:00
parent ad0a83947b
commit ae4b24d98a
7 changed files with 5 additions and 10 deletions

View File

@ -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

View File

@ -387,7 +387,6 @@ const start = () => {
* 番茄钟结束
*/
const stop = () => {
console.log('清除番茄钟')
clearInterval(bell)
remainStr.value = formateMs(0)
if (TomatoBellRef.value) {

View File

@ -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()
})
}

View File

@ -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

View File

@ -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

View File

@ -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')
})

View File

@ -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)
})
}