1
1
mirror of https://github.com/kokonect-link/cherrypick synced 2024-12-12 21:58:58 +09:00

スクラッチパッド、ボタンウィジェット、AiScriptウィジェットでトークンを設定するように

This commit is contained in:
syuilo 2021-02-11 16:16:04 +09:00
parent 90f738608f
commit cc9bc7703a
3 changed files with 6 additions and 3 deletions

View File

@ -70,7 +70,8 @@ export default defineComponent({
async run() {
this.logs = [];
const aiscript = new AiScript(createAiScriptEnv({
storageKey: 'scratchpad'
storageKey: 'scratchpad',
token: this.$i?.token,
}), {
in: (q) => {
return new Promise(ok => {

View File

@ -54,7 +54,8 @@ export default defineComponent({
async run() {
this.logs = [];
const aiscript = new AiScript(createAiScriptEnv({
storageKey: 'widget'
storageKey: 'widget',
token: this.$i?.token,
}), {
in: (q) => {
return new Promise(ok => {

View File

@ -45,7 +45,8 @@ export default defineComponent({
methods: {
async run() {
const aiscript = new AiScript(createAiScriptEnv({
storageKey: 'scratchpad'
storageKey: 'widget',
token: this.$i?.token,
}), {
in: (q) => {
return new Promise(ok => {