|
@@ -7,18 +7,17 @@ import App from "./app.vue";
|
|
|
import browser from "@/utils/browser";
|
|
|
|
|
|
if (!window.location.search) {
|
|
|
- window.location.href = '/index.html?m=eur-KJ-z5ZEV22AeU&pose=pano:408,qua:-0.006,0.6299,0.0049,0.7766'
|
|
|
-}
|
|
|
-
|
|
|
-if (!browser.hasURLParam("pose")) {
|
|
|
+ window.location.href = '/index.html?m=eur-KJ-z5ZEV22AeU&pose=pano:408,qua:-0.006,0.6299,0.0049,0.7766';
|
|
|
+} else if (!browser.hasURLParam("pose")) {
|
|
|
let url = window.location.href + `&pose=pano:408,qua:-0.006,0.6299,0.0049,0.7766`;
|
|
|
window.location.href = url
|
|
|
+} else {
|
|
|
+ const app = createApp(App);
|
|
|
+
|
|
|
+ app.use(store);
|
|
|
+ app.use(Components);
|
|
|
+ app.directive("click-outside", ClickOutSide);
|
|
|
+ app.mount("#app");
|
|
|
}
|
|
|
|
|
|
|
|
|
-const app = createApp(App);
|
|
|
-// set i18n language
|
|
|
-app.use(store);
|
|
|
-app.use(Components);
|
|
|
-app.directive("click-outside", ClickOutSide);
|
|
|
-app.mount("#app");
|