fix: scope's method

This commit is contained in:
FoskyM 2023-10-02 05:35:14 +08:00
parent 95e195a5de
commit faee03069c
No known key found for this signature in database
GPG key ID: 42C0ED6994AD7E9C
3 changed files with 2 additions and 0 deletions

BIN
js/dist/admin.js generated vendored

Binary file not shown.

BIN
js/dist/admin.js.map generated vendored

Binary file not shown.

View file

@ -86,6 +86,8 @@ export default class ScopesPage extends Page {
const scope = app.store.createRecord('oauth-scopes');
scope.save({
'scope': 'Scope.' + this.randomString(8),
'resource_path': '/api/' + this.randomString(4),
'method': 'GET',
}).then(this.scopes.push(scope));
},
}, app.translator.trans(this.translationPrefix + 'add_button')))),