Browse Source

perf: remove console

main
xingyu 2 years ago
parent
commit
af28b6b4d8
  1. 1
      src/store/modules/permission.ts
  2. 1
      src/utils/http/axios/index.ts
  3. 1
      src/views/pay/app/index.vue
  4. 1
      src/views/system/area/AreaModal.vue
  5. 1
      src/views/system/dict/DictData.vue
  6. 1
      src/views/system/mail/template/index.vue

1
src/store/modules/permission.ts

@ -236,7 +236,6 @@ export const usePermissionStore = defineStore('app-permission', {
routeList = routeList.filter(routeRemoveIgnoreFilter)
routeList = flatMultiLevelRoutes(routeList)
routes = [PAGE_NOT_FOUND_ROUTE, dashboard, ...routeList, about]
console.info(routes)
break
}

1
src/utils/http/axios/index.ts

@ -60,7 +60,6 @@ const transform: AxiosTransform = {
}
// 这里 code,result,message为 后台统一的字段,需要在 types.ts内修改为项目自己的接口返回格式
const { code, data: result, msg } = data
console.info(result)
// 这里逻辑可以根据项目进行修改
const hasSuccess = data && Reflect.has(data, 'code') && code === ResultEnum.SUCCESS
if (hasSuccess) {

1
src/views/pay/app/index.vue

@ -248,7 +248,6 @@ async function handleDelete(record: Recordable) {
}
function openChannel(record: Recordable, payCode: string, type: string, isUpdate: boolean) {
console.info(record)
openChannelModal(true, { record, payCode, type, isUpdate })
}
</script>

1
src/views/system/area/AreaModal.vue

@ -28,7 +28,6 @@ async function handleSubmit() {
try {
const values = await validate()
setModalProps({ confirmLoading: true })
console.info(values)
const res = await getAreaByIp(values.ip)
if (res) {
values.result = res

1
src/views/system/dict/DictData.vue

@ -94,7 +94,6 @@ async function handleDelete(record: Recordable) {
watch(
() => props.searchInfo,
(val) => {
console.info(val)
val && reload()
},
{ deep: true }

1
src/views/system/mail/template/index.vue

@ -80,7 +80,6 @@ function handleCreate() {
}
function handleSend(record: Recordable) {
console.info(record)
openSenModal(true, record)
}