vue2-client 1.8.109 → 1.8.111

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "vue2-client",
3
- "version": "1.8.109",
3
+ "version": "1.8.111",
4
4
  "private": false,
5
5
  "scripts": {
6
6
  "serve": "SET NODE_OPTIONS=--openssl-legacy-provider && vue-cli-service serve --no-eslint",
@@ -316,6 +316,10 @@ export default {
316
316
  // 处理sql的单引号
317
317
  content.sql = content.sql.replaceAll(/'/g, "''")
318
318
  }
319
+ if (content.oldSql) {
320
+ // 处理sql的单引号
321
+ content.oldSql = content.oldSql.replaceAll(/'/g, "''")
322
+ }
319
323
  console.log(content)
320
324
  // 保存到数据库中
321
325
  post('/api/af-system/logic/openapi/updateCommonData', {
@@ -50,7 +50,7 @@ import DataTabs from './DataTabs.vue'
50
50
  import { formatDate } from '@vue2-client/utils/util'
51
51
  import QuestionHistoryAndFavorites from './QuestionHistoryAndFavorites.vue'
52
52
  import { post } from '@vue2-client/services/api'
53
- import { indexedDB } from '@vue2-client/utils/indexedDB'
53
+ // import { indexedDB } from '@vue2-client/utils/indexedDB'
54
54
 
55
55
  export default {
56
56
  name: 'DynamicStatistics',
@@ -75,27 +75,30 @@ export default {
75
75
  callback()
76
76
  return
77
77
  }
78
- const that = this
79
- indexedDB.getAll((data) => {
80
- let evaluation = true
81
- for (const datum of data) {
82
- if (datum.key.includes('question') && !datum.key.includes('question-lib')) {
83
- const item = datum.data
84
- console.warn(item)
85
- if (item.evaluation === undefined && item.sql) {
86
- evaluation = false
87
- break
88
- }
89
- }
90
- }
91
- if (evaluation) {
92
- that.handleSearchMain(value, queryType, callback, uuid)
93
- } else {
94
- that.$message.warn('请先对已发起的对话进行评价!')
95
- callback()
96
- return false
97
- }
98
- })
78
+ // 何总说我们自己用 不需要判断有没有评论了
79
+ this.handleSearchMain(value, queryType, callback, uuid)
80
+
81
+ // const that = this
82
+ // indexedDB.getAll((data) => {
83
+ // let evaluation = true
84
+ // for (const datum of data) {
85
+ // if (datum.key.includes('question') && !datum.key.includes('question-lib')) {
86
+ // const item = datum.data
87
+ // console.warn(item)
88
+ // if (item.evaluation === undefined && item.sql) {
89
+ // evaluation = false
90
+ // break
91
+ // }
92
+ // }
93
+ // }
94
+ // // if (evaluation) {
95
+ // that.handleSearchMain(value, queryType, callback, uuid)
96
+ // } else {
97
+ // that.$message.warn('请先对已发起的对话进行评价!')
98
+ // callback()
99
+ // return false
100
+ // }
101
+ // })
99
102
  },
100
103
  handleSearchMain (value, queryType, callback, uuid) {
101
104
  this.loading = true
@@ -110,10 +113,10 @@ export default {
110
113
  isFavorite: false,
111
114
  date: formatDate('now')
112
115
  })
113
- let url = '/ai/question'
114
- if (queryType !== 'all') {
115
- url = '/' + url + queryType + '/'
116
- }
116
+ const url = '/ai/question/'
117
+ // if (queryType !== 'all') {
118
+ // url = '/' + url + queryType + '/'
119
+ // }
117
120
  post(url, {
118
121
  messages: [{
119
122
  content: value,