Skip to content

Commit

Permalink
🐛 Fix(custom): fix api storage bug
Browse files Browse the repository at this point in the history
  • Loading branch information
Kuingsmile committed Apr 25, 2023
1 parent 6df2418 commit 07f8200
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/pages/SettingsPage.vue
Original file line number Diff line number Diff line change
Expand Up @@ -377,6 +377,7 @@ function initData () {
model.value = localStorage.getItem(localStorageKey.model) || 'gpt-3.5-turbo'
replyLanguage.value = localStorage.getItem(localStorageKey.replyLanguage) || 'English'
apiKey.value = localStorage.getItem(localStorageKey.apiKey) || ''
api.value = localStorage.getItem(localStorageKey.api) as 'official' | 'web-api' || 'web-api'
accessToken.value = localStorage.getItem(localStorageKey.accessToken) || ''
enableProxy.value = localStorage.getItem(localStorageKey.enableProxy) === 'true'
proxyHost.value = JSON.parse(localStorage.getItem(localStorageKey.proxy) || '{}').host || ''
Expand Down Expand Up @@ -409,6 +410,7 @@ function handleAccessTokenChange () {
}
function handleApiChange (val: string) {
console.log(val)
localStorage.setItem(localStorageKey.api, val)
}
Expand Down

0 comments on commit 07f8200

Please sign in to comment.