aI问答支持流式输出,效果非常好
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
"use strict";
|
||||
const common_vendor = require("../../common/vendor.js");
|
||||
const db = common_vendor.tr.database();
|
||||
const db = common_vendor._r.database();
|
||||
const readNewsLog = db.collection("read-news-log");
|
||||
const _sfc_main = {
|
||||
data() {
|
||||
@@ -84,7 +84,7 @@ const _sfc_main = {
|
||||
common_vendor.index.__f__("log", "at pages-subpackage/list/detail.vue:161", readNewsLog2);
|
||||
},
|
||||
setFavorite() {
|
||||
if (common_vendor.tr.getCurrentUserInfo().tokenExpired < Date.now()) {
|
||||
if (common_vendor._r.getCurrentUserInfo().tokenExpired < Date.now()) {
|
||||
return common_vendor.index.__f__("log", "at pages-subpackage/list/detail.vue:165", "未登录用户");
|
||||
}
|
||||
let article_id = this.id, last_time = Date.now();
|
||||
@@ -181,7 +181,7 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
||||
vueId: "91d600e9-0"
|
||||
}),
|
||||
c: common_vendor.sr("detail", "91d600e9-0"),
|
||||
d: common_vendor.o($options.loadData),
|
||||
d: common_vendor.o($options.loadData, "b1"),
|
||||
e: common_vendor.p({
|
||||
options: $data.formData,
|
||||
collection: $options.colList,
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
const common_vendor = require("../../common/vendor.js");
|
||||
let cdbRef;
|
||||
const statusBar = () => "../../uni_modules/uni-nav-bar/components/uni-nav-bar/uni-status-bar.js";
|
||||
const db = common_vendor.tr.database();
|
||||
const db = common_vendor._r.database();
|
||||
const _sfc_main = {
|
||||
components: {
|
||||
statusBar
|
||||
@@ -120,7 +120,7 @@ if (!Math) {
|
||||
function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
||||
return {
|
||||
a: common_vendor.sr("searchBar", "9ed7da74-1"),
|
||||
b: common_vendor.o(($event) => $data.keyword = $event),
|
||||
b: common_vendor.o(($event) => $data.keyword = $event, "fe"),
|
||||
c: common_vendor.p({
|
||||
radius: "100",
|
||||
cancelButton: "none",
|
||||
@@ -128,7 +128,7 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
||||
placeholder: $options.inputPlaceholder,
|
||||
modelValue: $data.keyword
|
||||
}),
|
||||
d: common_vendor.o((...args) => $options.searchClick && $options.searchClick(...args)),
|
||||
d: common_vendor.o((...args) => $options.searchClick && $options.searchClick(...args), "77"),
|
||||
e: common_vendor.w(({
|
||||
data,
|
||||
pagination,
|
||||
@@ -175,14 +175,14 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
||||
path: "e",
|
||||
vueId: "9ed7da74-2"
|
||||
}),
|
||||
f: common_vendor.o($options.refresh),
|
||||
g: common_vendor.o($options.loadMore),
|
||||
f: common_vendor.o($options.refresh, "cc"),
|
||||
g: common_vendor.o($options.loadMore, "f3"),
|
||||
h: $data.listHight,
|
||||
i: common_vendor.p({
|
||||
border: false
|
||||
}),
|
||||
j: common_vendor.sr("udb", "9ed7da74-2"),
|
||||
k: common_vendor.o($options.onqueryerror),
|
||||
k: common_vendor.o($options.onqueryerror, "d3"),
|
||||
l: common_vendor.p({
|
||||
collection: $options.colList,
|
||||
["page-size"]: 10
|
||||
|
||||
@@ -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",
|
||||
|
||||
Reference in New Issue
Block a user