aI问答支持流式输出,效果非常好
This commit is contained in:
@@ -33,7 +33,7 @@ const _sfc_main = {
|
||||
src: {
|
||||
handler(src) {
|
||||
if (src && src.substring(0, 8) == "cloud://") {
|
||||
common_vendor.tr.getTempFileURL({
|
||||
common_vendor._r.getTempFileURL({
|
||||
fileList: [src]
|
||||
}).then((res) => {
|
||||
this.cSrc = res.fileList[0].tempFileURL;
|
||||
@@ -65,7 +65,7 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
||||
d: $data.cSrc,
|
||||
e: $props.mode
|
||||
} : {}, {
|
||||
f: common_vendor.o((...args) => $options.onClick && $options.onClick(...args)),
|
||||
f: common_vendor.o((...args) => $options.onClick && $options.onClick(...args), "93"),
|
||||
g: $props.width,
|
||||
h: $props.height
|
||||
});
|
||||
|
||||
@@ -95,7 +95,7 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
||||
b: $data.needAgreements
|
||||
}, $data.needAgreements ? {
|
||||
c: $data.isAgree,
|
||||
d: common_vendor.o((...args) => $options.setAgree && $options.setAgree(...args)),
|
||||
d: common_vendor.o((...args) => $options.setAgree && $options.setAgree(...args), "2d"),
|
||||
e: common_vendor.f($options.agreements, (agreement, index, i0) => {
|
||||
return common_vendor.e({
|
||||
a: common_vendor.t(agreement.title),
|
||||
@@ -117,7 +117,7 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
||||
d: index
|
||||
});
|
||||
}),
|
||||
h: common_vendor.o($options.popupConfirm),
|
||||
h: common_vendor.o($options.popupConfirm, "bd"),
|
||||
i: common_vendor.p({
|
||||
confirmText: "同意"
|
||||
}),
|
||||
|
||||
@@ -62,7 +62,7 @@ const _sfc_main = {
|
||||
});
|
||||
let {
|
||||
fileID
|
||||
} = await common_vendor.tr.uploadFile({
|
||||
} = await common_vendor._r.uploadFile({
|
||||
filePath: avatarUrl,
|
||||
cloudPath,
|
||||
fileType: "image"
|
||||
@@ -109,8 +109,8 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
||||
color: "#dddddd"
|
||||
})
|
||||
}, {
|
||||
g: common_vendor.o((...args) => $options.bindchooseavatar && $options.bindchooseavatar(...args)),
|
||||
h: common_vendor.o((...args) => $options.uploadAvatarImg && $options.uploadAvatarImg(...args)),
|
||||
g: common_vendor.o((...args) => $options.bindchooseavatar && $options.bindchooseavatar(...args), "26"),
|
||||
h: common_vendor.o((...args) => $options.uploadAvatarImg && $options.uploadAvatarImg(...args), "f3"),
|
||||
i: $props.border ? 1 : "",
|
||||
j: $props.width,
|
||||
k: $props.height,
|
||||
|
||||
@@ -1,8 +1,8 @@
|
||||
"use strict";
|
||||
const common_vendor = require("../../../../common/vendor.js");
|
||||
const db = common_vendor.tr.database();
|
||||
const db = common_vendor._r.database();
|
||||
db.collection("uni-id-users");
|
||||
const uniIdCo = common_vendor.tr.importObject("uni-id-co");
|
||||
const uniIdCo = common_vendor._r.importObject("uni-id-co");
|
||||
const _sfc_main = {
|
||||
emits: ["success"],
|
||||
computed: {},
|
||||
@@ -23,7 +23,7 @@ const _sfc_main = {
|
||||
success({
|
||||
code
|
||||
}) {
|
||||
common_vendor.tr.importObject("uni-id-co", {
|
||||
common_vendor._r.importObject("uni-id-co", {
|
||||
customUI: true
|
||||
}).loginByWeixin({ code }).then((e) => {
|
||||
resolve();
|
||||
@@ -73,8 +73,8 @@ if (!Math) {
|
||||
}
|
||||
function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
||||
return {
|
||||
a: common_vendor.o((...args) => $options.closeMe && $options.closeMe(...args)),
|
||||
b: common_vendor.o((...args) => $options.bindMobileByMpWeixin && $options.bindMobileByMpWeixin(...args)),
|
||||
a: common_vendor.o((...args) => $options.closeMe && $options.closeMe(...args), "c3"),
|
||||
b: common_vendor.o((...args) => $options.bindMobileByMpWeixin && $options.bindMobileByMpWeixin(...args), "1d"),
|
||||
c: common_vendor.sr("popup", "e0127e04-0"),
|
||||
d: common_vendor.p({
|
||||
type: "bottom"
|
||||
|
||||
@@ -120,7 +120,7 @@ const _sfc_main = {
|
||||
icon: "none",
|
||||
duration: 3e3
|
||||
});
|
||||
const uniIdCo = common_vendor.tr.importObject("uni-id-co", {
|
||||
const uniIdCo = common_vendor._r.importObject("uni-id-co", {
|
||||
customUI: true
|
||||
});
|
||||
common_vendor.index.__f__("log", "at uni_modules/uni-id-pages/components/uni-id-pages-email-form/uni-id-pages-email-form.vue:144", "sendEmailCode", {
|
||||
@@ -186,14 +186,14 @@ if (!Math) {
|
||||
function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
||||
return {
|
||||
a: common_vendor.sr("captcha", "bcd6b47b-0"),
|
||||
b: common_vendor.o(($event) => $data.captcha = $event),
|
||||
b: common_vendor.o(($event) => $data.captcha = $event, "5c"),
|
||||
c: common_vendor.p({
|
||||
focus: $props.focusCaptchaInput,
|
||||
scene: "send-email-code",
|
||||
modelValue: $data.captcha
|
||||
}),
|
||||
d: common_vendor.o(($event) => $data.focusEmailCodeInput = false),
|
||||
e: common_vendor.o(($event) => $data.modelValue = $event),
|
||||
d: common_vendor.o(($event) => $data.focusEmailCodeInput = false, "13"),
|
||||
e: common_vendor.o(($event) => $data.modelValue = $event, "eb"),
|
||||
f: common_vendor.p({
|
||||
focus: $data.focusEmailCodeInput,
|
||||
type: "number",
|
||||
@@ -204,7 +204,7 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
||||
}),
|
||||
g: common_vendor.t($options.innerText),
|
||||
h: common_vendor.n($data.reverseNumber == 0 ? "inner-text-active" : ""),
|
||||
i: common_vendor.o((...args) => _ctx.start && _ctx.start(...args))
|
||||
i: common_vendor.o((...args) => _ctx.start && _ctx.start(...args), "2a")
|
||||
};
|
||||
}
|
||||
const Component = /* @__PURE__ */ common_vendor._export_sfc(_sfc_main, [["render", _sfc_render], ["__scopeId", "data-v-bcd6b47b"]]);
|
||||
|
||||
@@ -300,7 +300,7 @@ const _sfc_main = {
|
||||
login(params, type) {
|
||||
common_vendor.index.__f__("log", "at uni_modules/uni-id-pages/components/uni-id-pages-fab-login/uni-id-pages-fab-login.vue:480", { params, type });
|
||||
let action = "loginBy" + type.trim().replace(type[0], type[0].toUpperCase());
|
||||
const uniIdCo = common_vendor.tr.importObject("uni-id-co", {
|
||||
const uniIdCo = common_vendor._r.importObject("uni-id-co", {
|
||||
customUI: true
|
||||
});
|
||||
uniIdCo[action](params).then((result) => {
|
||||
@@ -311,7 +311,7 @@ const _sfc_main = {
|
||||
});
|
||||
if (type === "weixin") {
|
||||
try {
|
||||
const db = common_vendor.tr.database();
|
||||
const db = common_vendor._r.database();
|
||||
const userCollection = db.collection("uni-id-users");
|
||||
userCollection.doc(result.uid).field("username,nickname,avatar_file,mobile,email").get().then((userRes) => {
|
||||
const userData = userRes.result.data[0] || {};
|
||||
|
||||
@@ -114,7 +114,7 @@ const _sfc_main = {
|
||||
icon: "none",
|
||||
duration: 3e3
|
||||
});
|
||||
const uniIdCo = common_vendor.tr.importObject("uni-id-co", {
|
||||
const uniIdCo = common_vendor._r.importObject("uni-id-co", {
|
||||
customUI: true
|
||||
});
|
||||
common_vendor.index.__f__("log", "at uni_modules/uni-id-pages/components/uni-id-pages-sms-form/uni-id-pages-sms-form.vue:139", "sendSmsCode", {
|
||||
@@ -180,14 +180,14 @@ if (!Math) {
|
||||
function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
||||
return {
|
||||
a: common_vendor.sr("captcha", "4b649130-0"),
|
||||
b: common_vendor.o(($event) => $data.captcha = $event),
|
||||
b: common_vendor.o(($event) => $data.captcha = $event, "bb"),
|
||||
c: common_vendor.p({
|
||||
focus: $props.focusCaptchaInput,
|
||||
scene: "send-sms-code",
|
||||
modelValue: $data.captcha
|
||||
}),
|
||||
d: common_vendor.o(($event) => $data.focusSmsCodeInput = false),
|
||||
e: common_vendor.o(($event) => $data.modelValue = $event),
|
||||
d: common_vendor.o(($event) => $data.focusSmsCodeInput = false, "db"),
|
||||
e: common_vendor.o(($event) => $data.modelValue = $event, "ca"),
|
||||
f: common_vendor.p({
|
||||
focus: $data.focusSmsCodeInput,
|
||||
type: "number",
|
||||
@@ -200,7 +200,7 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
||||
}),
|
||||
g: common_vendor.t($options.innerText),
|
||||
h: common_vendor.n($data.reverseNumber == 0 ? "inner-text-active" : ""),
|
||||
i: common_vendor.o((...args) => _ctx.start && _ctx.start(...args))
|
||||
i: common_vendor.o((...args) => _ctx.start && _ctx.start(...args), "75")
|
||||
};
|
||||
}
|
||||
const Component = /* @__PURE__ */ common_vendor._export_sfc(_sfc_main, [["render", _sfc_render], ["__scopeId", "data-v-4b649130"]]);
|
||||
|
||||
Reference in New Issue
Block a user