Commit 9e9d1dc8 authored by xiaoye's avatar xiaoye

fix

parent e11aedef
......@@ -103,6 +103,7 @@
page : 1,
total : 0,
search : async () : Promise<void> => {
if (Mycard.id < 0) return;
const res = await Tabulator.ApiKey.FindALL(Mycard.token, {
pageCount : api.page,
userId : Mycard.id
......@@ -207,8 +208,10 @@
onBeforeMount(() : void => {
api.search();
});
onUnmounted(() : void => {
});
</script>
<style lang = 'scss'>
#footer {
......
......@@ -583,6 +583,8 @@ class TabulatorAPI {
}
};
try {
if (!obj.userId || obj.userId < 0)
throw new Error('未登录');
response = await this.url.get(`/api/api-key`, {
params : {
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