スクラッチパッド、ボタンウィジェット、AiScriptウィジェットでトークンを設定するように
This commit is contained in:
parent
90f738608f
commit
cc9bc7703a
|
@ -70,7 +70,8 @@ export default defineComponent({
|
||||||
async run() {
|
async run() {
|
||||||
this.logs = [];
|
this.logs = [];
|
||||||
const aiscript = new AiScript(createAiScriptEnv({
|
const aiscript = new AiScript(createAiScriptEnv({
|
||||||
storageKey: 'scratchpad'
|
storageKey: 'scratchpad',
|
||||||
|
token: this.$i?.token,
|
||||||
}), {
|
}), {
|
||||||
in: (q) => {
|
in: (q) => {
|
||||||
return new Promise(ok => {
|
return new Promise(ok => {
|
||||||
|
|
|
@ -54,7 +54,8 @@ export default defineComponent({
|
||||||
async run() {
|
async run() {
|
||||||
this.logs = [];
|
this.logs = [];
|
||||||
const aiscript = new AiScript(createAiScriptEnv({
|
const aiscript = new AiScript(createAiScriptEnv({
|
||||||
storageKey: 'widget'
|
storageKey: 'widget',
|
||||||
|
token: this.$i?.token,
|
||||||
}), {
|
}), {
|
||||||
in: (q) => {
|
in: (q) => {
|
||||||
return new Promise(ok => {
|
return new Promise(ok => {
|
||||||
|
|
|
@ -45,7 +45,8 @@ export default defineComponent({
|
||||||
methods: {
|
methods: {
|
||||||
async run() {
|
async run() {
|
||||||
const aiscript = new AiScript(createAiScriptEnv({
|
const aiscript = new AiScript(createAiScriptEnv({
|
||||||
storageKey: 'scratchpad'
|
storageKey: 'widget',
|
||||||
|
token: this.$i?.token,
|
||||||
}), {
|
}), {
|
||||||
in: (q) => {
|
in: (q) => {
|
||||||
return new Promise(ok => {
|
return new Promise(ok => {
|
||||||
|
|
Loading…
Reference in New Issue