mirror of
https://github.com/misskey-dev/misskey.git
synced 2026-05-17 23:05:27 +02:00
✌️
This commit is contained in:
25
src/web/app/auth/script.ts
Normal file
25
src/web/app/auth/script.ts
Normal file
@@ -0,0 +1,25 @@
|
||||
/**
|
||||
* Authorize Form
|
||||
*/
|
||||
|
||||
// Style
|
||||
import './style.styl';
|
||||
|
||||
import init from '../init';
|
||||
|
||||
import Index from './views/index.vue';
|
||||
|
||||
/**
|
||||
* init
|
||||
*/
|
||||
init(async (launch) => {
|
||||
document.title = 'Misskey | アプリの連携';
|
||||
|
||||
// Launch the app
|
||||
const [app] = launch();
|
||||
|
||||
// Routing
|
||||
app.$router.addRoutes([
|
||||
{ path: '/:token', component: Index },
|
||||
]);
|
||||
});
|
||||
@@ -42,10 +42,14 @@ export default Vue.extend({
|
||||
return {
|
||||
state: null,
|
||||
session: null,
|
||||
fetching: true,
|
||||
token: window.location.href.split('/').pop()
|
||||
fetching: true
|
||||
};
|
||||
},
|
||||
computed: {
|
||||
token(): string {
|
||||
return this.$route.params.token;
|
||||
}
|
||||
},
|
||||
mounted() {
|
||||
if (!this.$root.$data.os.isSignedIn) return;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user