Browse Source

fix(nc-gui): license issues

pull/5307/head
Wing-Kam Wong 2 years ago
parent
commit
d5eb8b13a0
  1. 9
      packages/nc-gui/components/account/License.vue

9
packages/nc-gui/components/account/License.vue

@ -14,9 +14,8 @@ let key = $ref('')
const loadLicense = async () => {
try {
const response = await api.orgLicense.get()
key = response.key
} catch (e) {
key = response.key!
} catch (e: any) {
message.error(await extractSdkResponseErrorMsg(e))
}
}
@ -25,7 +24,7 @@ const setLicense = async () => {
await api.orgLicense.set({ key: key })
message.success('License key updated')
await loadAppInfo()
} catch (e) {
} catch (e: any) {
message.error(await extractSdkResponseErrorMsg(e))
}
$e('a:account:license')
@ -45,5 +44,3 @@ loadLicense()
</div>
</div>
</template>
<style scoped></style>

Loading…
Cancel
Save