perf: 删除控制台打印

This commit is contained in:
fit2cloud-chenyw 2023-11-29 17:06:53 +08:00
parent 272bb354de
commit 70332464f4
9 changed files with 4 additions and 38 deletions

View File

@ -129,10 +129,8 @@ htmlStream.pipe(parserStream).on('finish', () => {
document.documentElement.insertBefore(head, document.querySelector('head'))`
fs.writeFile('../dist/demo.html', template, err => {
console.log('写入成功')
})
fs.writeFile(`../dist/js/div_import_${suffix}.js`, templateJs, err => {
console.log('写入成功templateJs')
})
})

View File

@ -58,7 +58,6 @@ import ChartError from '@/views/chart/components/views/components/ChartError.vue
import { useEmitt } from '@/hooks/web/useEmitt'
const snapshotStore = snapshotStoreWithOut()
const errMsg = ref('')
const curFields = ref([])
const dvMainStore = dvMainStoreWithOut()
const { canvasViewInfo } = storeToRefs(dvMainStore)
const isError = ref(false)
@ -371,7 +370,6 @@ const initCurFields = chartDetails => {
yDataeaseNames.push(yItem.dataeaseName)
yDataeaseNamesCfg[yItem.dataeaseName] = yItem.formatterCfg
})
rowDataFormat(rowData, yDataeaseNames, yDataeaseNamesCfg)
}
for (const key in rowData) {
dataRowSelect.value[nameIdMap[key]] = rowData[key]
@ -388,15 +386,6 @@ const initCurFields = chartDetails => {
}
}
const rowDataFormat = (rowData, yDataeaseNames, yDataeaseNamesCfg) => {
console.log(
'rowData, yDataeaseNames, yDataeaseNamesCfg',
rowData,
yDataeaseNames,
yDataeaseNamesCfg
)
}
const renderChart = () => {
//do nothing
}

View File

@ -101,7 +101,6 @@ let isShiftDown = false
// 全局监听按键操作并执行相应命令
export function listenGlobalKeyDown() {
window.onkeydown = e => {
console.log('e.keyCode-down=' + e.keyCode)
if (!isInEditor || checkDialog()) return
const { keyCode } = e
if (positionMoveKey[keyCode] && curComponent.value) {
@ -129,7 +128,6 @@ export function listenGlobalKeyDown() {
}
window.onkeyup = e => {
console.log('e.keyCode=' + e.keyCode)
if (e.keyCode === ctrlKey || e.keyCode === commandKey) {
isCtrlOrCommandDown = false
composeStore.setIsCtrlOrCmdDownStatus(false)

View File

@ -42,7 +42,7 @@ const buildSettingList = () => {
const emits = defineEmits(['saved'])
const submitForm = async (formEl: FormInstance | undefined) => {
if (!formEl) return
await formEl.validate((valid, fields) => {
await formEl.validate(valid => {
if (valid) {
const param = buildSettingList()
if (param.length < 2) {
@ -62,8 +62,6 @@ const submitForm = async (formEl: FormInstance | undefined) => {
.catch(() => {
closeLoading()
})
} else {
console.log('error submit!', fields)
}
})
}
@ -95,7 +93,6 @@ const edit = list => {
state.form[item['pkey']] = pval || state.form[item['pkey']]
return item
})
console.log(state.settingList)
dialogVisible.value = true
}
defineExpose({

View File

@ -38,7 +38,7 @@ const edit = () => {
const emits = defineEmits(['saved'])
const submitForm = async (formEl: FormInstance | undefined) => {
if (!formEl) return
await formEl.validate((valid, fields) => {
await formEl.validate(valid => {
if (valid) {
const param = { ...state.form }
const method = null
@ -56,8 +56,6 @@ const submitForm = async (formEl: FormInstance | undefined) => {
.catch(() => {
closeLoading()
})
} else {
console.log('error submit!', fields)
}
})
}

View File

@ -1,6 +1,6 @@
<template>
<p class="router-title">{{ t('commons.system_parameter_setting') }}</p>
<el-tabs v-model="activeName" @tab-click="handleClick">
<el-tabs v-model="activeName">
<el-tab-pane v-for="item in tabArray" :key="item.name" :label="item.label" :name="item.name" />
</el-tabs>
<div class="sys-setting-p" :class="{ 'setting-auto-h': activeName !== 'map' }">
@ -27,9 +27,6 @@ const tabArray = [
/* {label: '引擎设置', name: 'engine'}, */
]
const activeName = ref('basic')
const handleClick = (tab, event: Event) => {
console.log(tab, event)
}
</script>
<style lang="less">
.router-title {

View File

@ -89,8 +89,6 @@ const submitForm = async (formEl: FormInstance | undefined) => {
.catch(() => {
closeLoading()
})
} else {
console.log('error submit!', fields)
}
})
}

View File

@ -3,14 +3,5 @@
</template>
<script lang="ts" setup>
import { ref } from 'vue'
import { useI18n } from '@/hooks/web/useI18n'
import TemplateManage from '@/views/template/index.vue'
const { t } = useI18n()
const activeName = ref('basic')
const handleClick = (tab, event: Event) => {
console.log(tab, event)
}
</script>

@ -1 +1 @@
Subproject commit e31c9212056eae3656aa534e3cc778d00001fe98
Subproject commit 13ca5bc32e594b003f137f763abad11700e382b8