Commit 9e9d1dc8 authored by xiaoye's avatar xiaoye

fix

parent e11aedef
...@@ -103,6 +103,7 @@ ...@@ -103,6 +103,7 @@
page : 1, page : 1,
total : 0, total : 0,
search : async () : Promise<void> => { search : async () : Promise<void> => {
if (Mycard.id < 0) return;
const res = await Tabulator.ApiKey.FindALL(Mycard.token, { const res = await Tabulator.ApiKey.FindALL(Mycard.token, {
pageCount : api.page, pageCount : api.page,
userId : Mycard.id userId : Mycard.id
...@@ -207,8 +208,10 @@ ...@@ -207,8 +208,10 @@
onBeforeMount(() : void => { onBeforeMount(() : void => {
api.search(); api.search();
}); });
onUnmounted(() : void => { onUnmounted(() : void => {
}); });
</script> </script>
<style lang = 'scss'> <style lang = 'scss'>
#footer { #footer {
......
...@@ -583,6 +583,8 @@ class TabulatorAPI { ...@@ -583,6 +583,8 @@ class TabulatorAPI {
} }
}; };
try { try {
if (!obj.userId || obj.userId < 0)
throw new Error('未登录');
response = await this.url.get(`/api/api-key`, { response = await this.url.get(`/api/api-key`, {
params : { params : {
recordsPerPage : 20, recordsPerPage : 20,
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment