Skip to content

Commit 386e207

Browse files
committed
refactor: remove log
1 parent f559d2b commit 386e207

File tree

19 files changed

+31
-47
lines changed

19 files changed

+31
-47
lines changed

frontend/public/assistant.js

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
<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>
2323
</svg>
2424
</div>
25-
25+
2626
<div class="sqlbot-assistant-title"> 🌟 遇见问题,不再有障碍!</div>
2727
<p>你好,我是你的智能小助手。<br/>
2828
点我,开启高效解答模式,让问题变成过去式。</p>
@@ -217,9 +217,9 @@
217217
bottom: 0!important;
218218
}
219219
}
220-
220+
221221
/* 引导 */
222-
222+
223223
#sqlbot-assistant .sqlbot-assistant-mask {
224224
position: fixed;
225225
z-index: 10001;
@@ -289,7 +289,7 @@
289289
right: 20px;
290290
top: 20px;
291291
cursor: pointer;
292-
292+
293293
}
294294
#sqlbot-assistant-chat-container {
295295
width: 460px;
@@ -303,7 +303,7 @@
303303
right: 0 !important;
304304
}
305305
}
306-
306+
307307
#sqlbot-assistant .sqlbot-assistant-chat-button{
308308
position: fixed;
309309
${data.x_type}: ${data.x_value}px;
@@ -362,7 +362,7 @@
362362
from {
363363
height: 0;;
364364
}
365-
365+
366366
to {
367367
height: 600px;
368368
}
@@ -433,7 +433,6 @@
433433
}
434434
if (event.data?.busi == 'ready' && event.data?.ready) {
435435
const certificate = parsrCertificate(data)
436-
console.log(certificate)
437436
params = {
438437
busi: 'certificate',
439438
certificate,

frontend/src/components/filter-text/index.ts

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -58,8 +58,6 @@ const valueText = (field: string, val: string, options: any[]) => {
5858
return val
5959
}
6060
export const convertFilterText = (conditions: any[], options: any[]) => {
61-
console.log('conditions', conditions, options)
62-
6361
const result: any[] = []
6462
conditions.forEach((condition) => {
6563
const field = condition.field

frontend/src/router/watch.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ export const watchRouter = (router: any) => {
3131
return
3232
}
3333
if (to.path === '/login') {
34-
console.log(from)
34+
console.info(from)
3535
next('/chat')
3636
} else {
3737
next()

frontend/src/views/chat/answer/AnalysisAnswer.vue

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -133,9 +133,6 @@ const sendMessage = async () => {
133133
_list.push(line)
134134
}
135135
}
136-
137-
// console.log(_list)
138-
139136
for (const str of _list) {
140137
let data
141138
try {
@@ -161,7 +158,7 @@ const sendMessage = async () => {
161158
_currentChat.value.records[index.value].id = data.id
162159
break
163160
case 'info':
164-
console.log(data.msg)
161+
console.info(data.msg)
165162
break
166163
case 'error':
167164
currentRecord.error = data.content

frontend/src/views/chat/answer/ChartAnswer.vue

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -137,9 +137,6 @@ const sendMessage = async () => {
137137
_list.push(line)
138138
}
139139
}
140-
141-
// console.log(_list)
142-
143140
for (const str of _list) {
144141
let data
145142
try {
@@ -165,7 +162,7 @@ const sendMessage = async () => {
165162
_currentChat.value.records[index.value].id = data.id
166163
break
167164
case 'info':
168-
console.log(data.msg)
165+
console.info(data.msg)
169166
break
170167
case 'brief':
171168
_currentChat.value.brief = data.brief

frontend/src/views/chat/answer/PredictAnswer.vue

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -133,9 +133,6 @@ const sendMessage = async () => {
133133
_list.push(line)
134134
}
135135
}
136-
137-
// console.log(_list)
138-
139136
for (const str of _list) {
140137
let data
141138
try {
@@ -160,7 +157,7 @@ const sendMessage = async () => {
160157
_currentChat.value.records[index.value].id = data.id
161158
break
162159
case 'info':
163-
console.log(data.msg)
160+
console.info(data.msg)
164161
break
165162
case 'error':
166163
currentRecord.error = data.content

frontend/src/views/chat/chat-block/UserChat.vue

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,10 +8,10 @@ const props = defineProps<{
88
const { t } = useI18n()
99
1010
function clickAnalysis() {
11-
console.log('analysis_record_id: ' + props.message?.record?.analysis_record_id)
11+
console.info('analysis_record_id: ' + props.message?.record?.analysis_record_id)
1212
}
1313
function clickPredict() {
14-
console.log('predict_record_id: ' + props.message?.record?.predict_record_id)
14+
console.info('predict_record_id: ' + props.message?.record?.predict_record_id)
1515
}
1616
</script>
1717

frontend/src/views/chat/index.vue

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -461,11 +461,11 @@ const currentChatEngineType = computed(() => {
461461
})
462462
463463
function onChatDeleted(id: number) {
464-
console.log('deleted', id)
464+
console.info('deleted', id)
465465
}
466466
467467
function onChatRenamed(chat: Chat) {
468-
console.log('renamed', chat)
468+
console.info('renamed', chat)
469469
}
470470
471471
const chatListSideBarShow = ref<boolean>(true)

frontend/src/views/dashboard/components/sq-text-t7/index.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ const initOptions = {
5252
}
5353
const handleInit = (editor: any) => {
5454
editorRef.value = editor
55-
console.log('TinyMCE 初始化完成', editor)
55+
console.info('TinyMCE 初始化完成', editor)
5656
}
5757
</script>
5858

frontend/src/views/ds/Datasource.vue

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -122,11 +122,11 @@ const refreshData = () => {
122122
}
123123
124124
const panelClick = () => {
125-
console.log('panelClick')
125+
console.info('panelClick')
126126
}
127127
128128
const smartClick = () => {
129-
console.log('smartClick')
129+
console.info('smartClick')
130130
}
131131
132132
const deleteHandler = (item: any) => {

0 commit comments

Comments
 (0)