fix: fix dock layout
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
import {createApp} from 'vue';
|
||||
import {createApp, ref} from 'vue';
|
||||
import App from './App.vue';
|
||||
import './style.css';
|
||||
import {VueTelegramPlugin} from 'vue-tg';
|
||||
@@ -118,8 +118,16 @@ settings.load()
|
||||
app.mount('#app');
|
||||
})
|
||||
.then(() => window.Telegram.WebApp.ready())
|
||||
.then(() => {
|
||||
const con = console;
|
||||
window.Telegram.WebApp.onEvent('viewportChanged', (state) => {
|
||||
|
||||
con.log('[Init]: viewportChanged', state.isStateStable, this.viewportHeight);
|
||||
});
|
||||
})
|
||||
.catch(error => {
|
||||
const code = error.code ?? error.response._data.code;
|
||||
console.error(error);
|
||||
const code = error.code ?? error?.response?._data.code;
|
||||
let ErrorComponent;
|
||||
|
||||
switch (code) {
|
||||
|
||||
Reference in New Issue
Block a user