perf: remove console
parent
b13f0308a5
commit
af28b6b4d8
|
@ -236,7 +236,6 @@ export const usePermissionStore = defineStore('app-permission', {
|
||||||
routeList = routeList.filter(routeRemoveIgnoreFilter)
|
routeList = routeList.filter(routeRemoveIgnoreFilter)
|
||||||
routeList = flatMultiLevelRoutes(routeList)
|
routeList = flatMultiLevelRoutes(routeList)
|
||||||
routes = [PAGE_NOT_FOUND_ROUTE, dashboard, ...routeList, about]
|
routes = [PAGE_NOT_FOUND_ROUTE, dashboard, ...routeList, about]
|
||||||
console.info(routes)
|
|
||||||
break
|
break
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -60,7 +60,6 @@ const transform: AxiosTransform = {
|
||||||
}
|
}
|
||||||
// 这里 code,result,message为 后台统一的字段,需要在 types.ts内修改为项目自己的接口返回格式
|
// 这里 code,result,message为 后台统一的字段,需要在 types.ts内修改为项目自己的接口返回格式
|
||||||
const { code, data: result, msg } = data
|
const { code, data: result, msg } = data
|
||||||
console.info(result)
|
|
||||||
// 这里逻辑可以根据项目进行修改
|
// 这里逻辑可以根据项目进行修改
|
||||||
const hasSuccess = data && Reflect.has(data, 'code') && code === ResultEnum.SUCCESS
|
const hasSuccess = data && Reflect.has(data, 'code') && code === ResultEnum.SUCCESS
|
||||||
if (hasSuccess) {
|
if (hasSuccess) {
|
||||||
|
|
|
@ -248,7 +248,6 @@ async function handleDelete(record: Recordable) {
|
||||||
}
|
}
|
||||||
|
|
||||||
function openChannel(record: Recordable, payCode: string, type: string, isUpdate: boolean) {
|
function openChannel(record: Recordable, payCode: string, type: string, isUpdate: boolean) {
|
||||||
console.info(record)
|
|
||||||
openChannelModal(true, { record, payCode, type, isUpdate })
|
openChannelModal(true, { record, payCode, type, isUpdate })
|
||||||
}
|
}
|
||||||
</script>
|
</script>
|
||||||
|
|
|
@ -28,7 +28,6 @@ async function handleSubmit() {
|
||||||
try {
|
try {
|
||||||
const values = await validate()
|
const values = await validate()
|
||||||
setModalProps({ confirmLoading: true })
|
setModalProps({ confirmLoading: true })
|
||||||
console.info(values)
|
|
||||||
const res = await getAreaByIp(values.ip)
|
const res = await getAreaByIp(values.ip)
|
||||||
if (res) {
|
if (res) {
|
||||||
values.result = res
|
values.result = res
|
||||||
|
|
|
@ -94,7 +94,6 @@ async function handleDelete(record: Recordable) {
|
||||||
watch(
|
watch(
|
||||||
() => props.searchInfo,
|
() => props.searchInfo,
|
||||||
(val) => {
|
(val) => {
|
||||||
console.info(val)
|
|
||||||
val && reload()
|
val && reload()
|
||||||
},
|
},
|
||||||
{ deep: true }
|
{ deep: true }
|
||||||
|
|
|
@ -80,7 +80,6 @@ function handleCreate() {
|
||||||
}
|
}
|
||||||
|
|
||||||
function handleSend(record: Recordable) {
|
function handleSend(record: Recordable) {
|
||||||
console.info(record)
|
|
||||||
openSenModal(true, record)
|
openSenModal(true, record)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue