AiScript関連
This commit is contained in:
parent
c62aff76af
commit
f07047d1e8
12 changed files with 58 additions and 133 deletions
|
|
@ -138,7 +138,7 @@ export default () => new Vuex.Store({
|
|||
const promise = new Promise((resolve, reject) => {
|
||||
// Append a credential
|
||||
if (ctx.getters.isSignedIn) (data as any).i = ctx.state.i.token;
|
||||
if (token) (data as any).i = token;
|
||||
if (token !== undefined) (data as any).i = token;
|
||||
|
||||
// Send request
|
||||
fetch(endpoint.indexOf('://') > -1 ? endpoint : `${apiUrl}/${endpoint}`, {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue