Skip to content

Commit d6c3fa7

Browse files
committed
Fix api tokens endpoint
1 parent a1c070b commit d6c3fa7

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/views/dashboard/ApiTokens/ApiTokenRoot.vue

+2-2
Original file line numberDiff line numberDiff line change
@@ -146,7 +146,7 @@ export default {
146146
return;
147147
}
148148
149-
this.tokens = res.data.data;
149+
this.tokens = res.data;
150150
},
151151
remove(item) {
152152
this.$swal({
@@ -207,7 +207,7 @@ export default {
207207
208208
this.load();
209209
this.newTokenModal = false;
210-
this.$swal('Successfully created API token!', `Make sure to save it somewhere secure, as it will not be showen to you again.<br><br>Code: ${res.data.data}`, 'success');
210+
this.$swal('Successfully created API token!', `Make sure to save it somewhere secure, as it will not be showen to you again.<br><br>Code: ${res.data.token}`, 'success');
211211
}
212212
}
213213
}

0 commit comments

Comments
 (0)