aI问答支持流式输出,效果非常好

This commit is contained in:
zhonghua.li
2026-03-31 21:04:53 +08:00
parent 60da0e2dd5
commit 22f951b514
163 changed files with 4646 additions and 8010 deletions

View File

@@ -59,7 +59,7 @@ const _sfc_main = {
};
},
created() {
this.db = common_vendor.tr.database();
this.db = common_vendor._r.database();
this.searchLogDb = this.db.collection(this.searchLogDbName);
this.mallGoodsDb = this.db.collection(this.mallGoodsDbName);
common_vendor.index.onKeyboardHeightChange((res) => {
@@ -231,10 +231,10 @@ if (!Math) {
function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
return common_vendor.e({
a: common_vendor.sr("searchBar", "d9f44979-0"),
b: common_vendor.o($options.clear),
c: common_vendor.o($options.confirm),
d: common_vendor.o($options.cancel),
e: common_vendor.o(($event) => $data.searchText = $event),
b: common_vendor.o($options.clear, "92"),
c: common_vendor.o($options.confirm, "67"),
d: common_vendor.o($options.cancel, "80"),
e: common_vendor.o(($event) => $data.searchText = $event, "3e"),
f: common_vendor.p({
radius: "100",
focus: $data.focus,
@@ -247,15 +247,15 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
}, $data.localSearchList.length ? common_vendor.e({
h: !$data.localSearchListDel
}, !$data.localSearchListDel ? {
i: common_vendor.o(($event) => $data.localSearchListDel = true),
i: common_vendor.o(($event) => $data.localSearchListDel = true, "67"),
j: common_vendor.p({
color: $data.iconColor,
size: "18",
type: "trash"
})
} : {
k: common_vendor.o((...args) => $options.LocalSearchListClear && $options.LocalSearchListClear(...args)),
l: common_vendor.o(($event) => $data.localSearchListDel = false)
k: common_vendor.o((...args) => $options.LocalSearchListClear && $options.LocalSearchListClear(...args), "3c"),
l: common_vendor.o(($event) => $data.localSearchListDel = false, "c8")
}, {
m: common_vendor.f($data.localSearchList, (word, index, i0) => {
return common_vendor.e({
@@ -276,14 +276,14 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
}) : {}, {
o: !$data.netHotListIsHide
}, !$data.netHotListIsHide ? {
p: common_vendor.o($options.searchHotRefresh),
p: common_vendor.o($options.searchHotRefresh, "40"),
q: common_vendor.p({
color: $data.iconColor,
size: "14",
type: "reload"
})
} : {}, {
r: common_vendor.o(($event) => $data.netHotListIsHide = !$data.netHotListIsHide),
r: common_vendor.o(($event) => $data.netHotListIsHide = !$data.netHotListIsHide, "0b"),
s: common_vendor.p({
color: $data.iconColor,
size: "18",