Skip to content
Snippets Groups Projects
Commit cc9bc770 authored by syuilo's avatar syuilo
Browse files

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

parent 90f73860
No related branches found
No related tags found
No related merge requests found
......@@ -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 => {
......
......@@ -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 => {
......
......@@ -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 => {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment