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