perf: remove console
							parent
							
								
									b13f0308a5
								
							
						
					
					
						commit
						af28b6b4d8
					
				| 
						 | 
				
			
			@ -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
 | 
			
		||||
      }
 | 
			
		||||
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -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) {
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -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>
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -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
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -94,7 +94,6 @@ async function handleDelete(record: Recordable) {
 | 
			
		|||
watch(
 | 
			
		||||
  () => props.searchInfo,
 | 
			
		||||
  (val) => {
 | 
			
		||||
    console.info(val)
 | 
			
		||||
    val && reload()
 | 
			
		||||
  },
 | 
			
		||||
  { deep: true }
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -80,7 +80,6 @@ function handleCreate() {
 | 
			
		|||
}
 | 
			
		||||
 | 
			
		||||
function handleSend(record: Recordable) {
 | 
			
		||||
  console.info(record)
 | 
			
		||||
  openSenModal(true, record)
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
		Reference in New Issue