Add applink dialog in apps view
This commit is contained in:
@@ -15,6 +15,10 @@ import AppsView from './AppsView.vue';
|
||||
import SupportView from './SupportView.vue';
|
||||
import VolumesView from './VolumesView.vue';
|
||||
|
||||
import ProfileModel from '../models/ProfileModel.js';
|
||||
|
||||
const API_ORIGIN = import.meta.env.VITE_API_ORIGIN ? import.meta.env.VITE_API_ORIGIN : window.location.origin;
|
||||
|
||||
const VIEWS = {
|
||||
APPS: 'apps',
|
||||
SUPPORT: 'support',
|
||||
@@ -33,6 +37,7 @@ export default {
|
||||
return {
|
||||
VIEWS,
|
||||
accessToken: localStorage.token,
|
||||
profile: {},
|
||||
view: ''
|
||||
};
|
||||
},
|
||||
@@ -44,6 +49,9 @@ export default {
|
||||
return;
|
||||
}
|
||||
|
||||
const profileModel = ProfileModel.create(API_ORIGIN, localStorage.token);
|
||||
this.profile = await profileModel.get();
|
||||
|
||||
const that = this;
|
||||
function onHashChange() {
|
||||
const view = location.hash.slice(2);
|
||||
|
||||
Reference in New Issue
Block a user