Skip to content

Commit 27f4382

Browse files
committed
doc
1 parent 9ff7dd9 commit 27f4382

2 files changed

Lines changed: 30 additions & 29 deletions

File tree

.gitignore

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,4 +47,5 @@ node_modules/
4747
dist
4848
docs/.vuepress/.cache
4949
docs/.vuepress/.temp
50-
.fastRequest
50+
.fastRequest
51+
.DS_Store

docs/.vuepress/config.ts

Lines changed: 28 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -44,34 +44,34 @@ export default defineUserConfig({
4444
`,
4545
],
4646
["script", { src: "https://lf-cdn.coze.cn/obj/unpkg/flow-platform/chat-app-sdk/1.2.0-beta.6/libs/cn/index.js" ,async: true}],
47-
["script", {}, `
48-
(function() {
49-
if(location.href.indexOf('api-buddy.cn') > -1 || location.href.indexOf('localhost') > -1 ){
50-
const script = document.createElement('script');
51-
script.src = 'https://lf-cdn.coze.cn/obj/unpkg/flow-platform/chat-app-sdk/1.2.0-beta.6/libs/cn/index.js';
52-
script.onload = function() {
53-
new CozeWebSDK.WebChatClient({
54-
config: {
55-
bot_id: '7490948972094963746',
56-
},
57-
componentProps: {
58-
title: 'FastRequest智能问答助手',
59-
icon: 'https://api-buddy.cn/img/aiRobot.svg',
60-
uploadable: false,
61-
},
62-
auth: {
63-
type: 'token',
64-
token: 'pat_7svIAdX7zHjgnWMS4Y1EbeZCvCXEhKoqnF0DbZyCyhHFR7tWcWy0wEJSnC1wKx7M',
65-
onRefreshToken: function () {
66-
return 'pat_7svIAdX7zHjgnWMS4Y1EbeZCvCXEhKoqnF0DbZyCyhHFR7tWcWy0wEJSnC1wKx7M'
67-
}
68-
}
69-
});
70-
};
71-
document.head.appendChild(script);
72-
}
73-
})();
74-
`],
47+
// ["script", {}, `
48+
// (function() {
49+
// if(location.href.indexOf('api-buddy.cn') > -1 || location.href.indexOf('localhost') > -1 ){
50+
// const script = document.createElement('script');
51+
// script.src = 'https://lf-cdn.coze.cn/obj/unpkg/flow-platform/chat-app-sdk/1.2.0-beta.6/libs/cn/index.js';
52+
// script.onload = function() {
53+
// new CozeWebSDK.WebChatClient({
54+
// config: {
55+
// bot_id: '7490948972094963746',
56+
// },
57+
// componentProps: {
58+
// title: 'FastRequest智能问答助手',
59+
// icon: 'https://api-buddy.cn/img/aiRobot.svg',
60+
// uploadable: false,
61+
// },
62+
// auth: {
63+
// type: 'token',
64+
// token: 'pat_7svIAdX7zHjgnWMS4Y1EbeZCvCXEhKoqnF0DbZyCyhHFR7tWcWy0wEJSnC1wKx7M',
65+
// onRefreshToken: function () {
66+
// return 'pat_7svIAdX7zHjgnWMS4Y1EbeZCvCXEhKoqnF0DbZyCyhHFR7tWcWy0wEJSnC1wKx7M'
67+
// }
68+
// }
69+
// });
70+
// };
71+
// document.head.appendChild(script);
72+
// }
73+
// })();
74+
// `],
7575

7676

7777
// ["script", { src: "https://cdn.wwads.cn/js/makemoney.js" }],

0 commit comments

Comments
 (0)