refactor: remove log

This commit is contained in:
wangjiahao
2025-07-30 15:04:31 +08:00
parent f559d2b2a4
commit 386e207d03
19 changed files with 31 additions and 47 deletions
+6 -7
View File
@@ -22,7 +22,7 @@
<path d="M9.95317 8.73169L15.5511 3.13376C15.7138 2.97104 15.9776 2.97104 16.1403 3.13376L16.7296 3.72301C16.8923 3.88573 16.8923 4.14955 16.7296 4.31227L11.1317 9.9102L16.7296 15.5081C16.8923 15.6708 16.8923 15.9347 16.7296 16.0974L16.1403 16.6866C15.9776 16.8494 15.7138 16.8494 15.5511 16.6866L9.95317 11.0887L4.35524 16.6866C4.19252 16.8494 3.9287 16.8494 3.76598 16.6866L3.17673 16.0974C3.01401 15.9347 3.01401 15.6708 3.17673 15.5081L8.77465 9.9102L3.17673 4.31227C3.01401 4.14955 3.01401 3.88573 3.17673 3.72301L3.76598 3.13376C3.9287 2.97104 4.19252 2.97104 4.35524 3.13376L9.95317 8.73169Z" fill="#ffffff"></path>
</svg>
</div>
<div class="sqlbot-assistant-title"> 🌟 遇见问题,不再有障碍!</div>
<p>你好,我是你的智能小助手。<br/>
点我,开启高效解答模式,让问题变成过去式。</p>
@@ -217,9 +217,9 @@
bottom: 0!important;
}
}
/* 引导 */
#sqlbot-assistant .sqlbot-assistant-mask {
position: fixed;
z-index: 10001;
@@ -289,7 +289,7 @@
right: 20px;
top: 20px;
cursor: pointer;
}
#sqlbot-assistant-chat-container {
width: 460px;
@@ -303,7 +303,7 @@
right: 0 !important;
}
}
#sqlbot-assistant .sqlbot-assistant-chat-button{
position: fixed;
${data.x_type}: ${data.x_value}px;
@@ -362,7 +362,7 @@
from {
height: 0;;
}
to {
height: 600px;
}
@@ -433,7 +433,6 @@
}
if (event.data?.busi == 'ready' && event.data?.ready) {
const certificate = parsrCertificate(data)
console.log(certificate)
params = {
busi: 'certificate',
certificate,
@@ -58,8 +58,6 @@ const valueText = (field: string, val: string, options: any[]) => {
return val
}
export const convertFilterText = (conditions: any[], options: any[]) => {
console.log('conditions', conditions, options)
const result: any[] = []
conditions.forEach((condition) => {
const field = condition.field
+1 -1
View File
@@ -31,7 +31,7 @@ export const watchRouter = (router: any) => {
return
}
if (to.path === '/login') {
console.log(from)
console.info(from)
next('/chat')
} else {
next()
@@ -133,9 +133,6 @@ const sendMessage = async () => {
_list.push(line)
}
}
// console.log(_list)
for (const str of _list) {
let data
try {
@@ -161,7 +158,7 @@ const sendMessage = async () => {
_currentChat.value.records[index.value].id = data.id
break
case 'info':
console.log(data.msg)
console.info(data.msg)
break
case 'error':
currentRecord.error = data.content
@@ -137,9 +137,6 @@ const sendMessage = async () => {
_list.push(line)
}
}
// console.log(_list)
for (const str of _list) {
let data
try {
@@ -165,7 +162,7 @@ const sendMessage = async () => {
_currentChat.value.records[index.value].id = data.id
break
case 'info':
console.log(data.msg)
console.info(data.msg)
break
case 'brief':
_currentChat.value.brief = data.brief
@@ -133,9 +133,6 @@ const sendMessage = async () => {
_list.push(line)
}
}
// console.log(_list)
for (const str of _list) {
let data
try {
@@ -160,7 +157,7 @@ const sendMessage = async () => {
_currentChat.value.records[index.value].id = data.id
break
case 'info':
console.log(data.msg)
console.info(data.msg)
break
case 'error':
currentRecord.error = data.content
@@ -8,10 +8,10 @@ const props = defineProps<{
const { t } = useI18n()
function clickAnalysis() {
console.log('analysis_record_id: ' + props.message?.record?.analysis_record_id)
console.info('analysis_record_id: ' + props.message?.record?.analysis_record_id)
}
function clickPredict() {
console.log('predict_record_id: ' + props.message?.record?.predict_record_id)
console.info('predict_record_id: ' + props.message?.record?.predict_record_id)
}
</script>
+2 -2
View File
@@ -461,11 +461,11 @@ const currentChatEngineType = computed(() => {
})
function onChatDeleted(id: number) {
console.log('deleted', id)
console.info('deleted', id)
}
function onChatRenamed(chat: Chat) {
console.log('renamed', chat)
console.info('renamed', chat)
}
const chatListSideBarShow = ref<boolean>(true)
@@ -52,7 +52,7 @@ const initOptions = {
}
const handleInit = (editor: any) => {
editorRef.value = editor
console.log('TinyMCE 初始化完成', editor)
console.info('TinyMCE 初始化完成', editor)
}
</script>
+2 -2
View File
@@ -122,11 +122,11 @@ const refreshData = () => {
}
const panelClick = () => {
console.log('panelClick')
console.info('panelClick')
}
const smartClick = () => {
console.log('smartClick')
console.info('smartClick')
}
const deleteHandler = (item: any) => {
+2 -3
View File
@@ -114,11 +114,10 @@ const state = reactive({
},
})
const handleSearch = (e: any) => {
console.log('search', e)
console.info('search', e)
}
const editHandler = (id: any) => {
termApi.query(id).then((res: any) => {
console.log('term detail', res)
state.form = res
dialogFormVisible.value = true
})
@@ -181,7 +180,7 @@ const addTerm = () => {
}
const editTerm = () => {
termApi.edit(state.form).then((res: any) => {
console.log('edit term', res)
console.info('edit term', res)
dialogFormVisible.value = false
search()
ElMessage({
+1 -1
View File
@@ -31,7 +31,7 @@ import Professional from './Professional.vue'
const activeName = ref('0')
const handleClick = (tab: any, event: MouseEvent) => {
console.log(tab, event)
console.info(tab, event)
}
</script>
+1 -1
View File
@@ -164,7 +164,7 @@ const beforeClose = () => {
}
const handleActive = (row: any) => {
console.log('row', row)
console.info('row', row)
}
const handlePrivate = (row: any) => {
+1 -1
View File
@@ -170,7 +170,7 @@ const deleteHandler = (item: any) => {
customClass: 'confirm-no_icon',
autofocus: false,
callback: (val: string) => {
console.log(val)
console.info(val)
},
})
return
@@ -93,7 +93,7 @@ const filterTypeChange = () => {
initEnumOptions()
}
const initEnumOptions = () => {
console.log('initEnumOptions')
console.info('initEnumOptions')
}
const selectItem = ({ field_name, id }: any) => {
+1 -1
View File
@@ -552,7 +552,7 @@ const handleEditPassword = (id: any) => {
const handleConfirmPassword = () => {
passwordRef.value.validate((val: any) => {
if (val) {
console.log(val)
console.info(val)
}
})
dialogVisiblePassword.value = false
+4 -4
View File
@@ -152,10 +152,10 @@ const state = reactive({
},
})
const handleSearch = (e: any) => {
console.log('search', e)
console.info('search', e)
}
const editHandler = (id: any) => {
console.log('editHandler', id)
console.info('editHandler', id)
/* userApi.query(id).then((res: any) => {
console.log('term detail', res)
state.form = res
@@ -163,7 +163,7 @@ const editHandler = (id: any) => {
}) */
}
const deleteHandler = (id: any) => {
console.log('deleteHandler', id)
console.info('deleteHandler', id)
ElMessageBox.confirm('Are you sure to delete?', 'Warning', {
confirmButtonText: 'OK',
cancelButtonText: 'Cancel',
@@ -222,7 +222,7 @@ const addTerm = () => {
}
const editTerm = () => {
userApi.edit(state.form).then((res: any) => {
console.log('edit term', res)
console.info('edit term', res)
dialogFormVisible.value = false
search()
ElMessage({
+2 -2
View File
@@ -7,8 +7,8 @@ import path from 'path'
import svgLoader from 'vite-svg-loader'
export default defineConfig(({ mode }) => {
const env = loadEnv(mode, process.cwd())
console.log(mode)
console.log(env)
console.info(mode)
console.info(env)
return {
base: './',
plugins: [
+1 -4
View File
@@ -17,7 +17,7 @@ http.createServer((req, res) => {
toPost(req, res);
}
}).listen(port, () => {
console.log(`Server listening on: http://localhost:${port}`);
console.info(`Server listening on: http://localhost:${port}`);
});
function getOptions(type, axis, data) {
@@ -50,9 +50,7 @@ function getOptions(type, axis, data) {
// 创建 Chart 和配置
async function GenerateCharts(obj) {
console.log(obj)
const options = getOptions(obj.type, JSON.parse(obj.axis), JSON.parse(obj.data));
console.log(options);
const chart = await createChart(options);
// 导出
@@ -69,7 +67,6 @@ async function GenerateCharts(obj) {
function toGet(req, res) {
let data = 'GET请求内容:\n' + util.inspect(url.parse(req.url));
res.end(data);
console.log(data);
}
//获取POST请求内容、cookie