|
@@ -72,10 +72,14 @@
|
|
|
|
|
|
<script setup lang="ts">
|
|
|
import { onMounted } from 'vue';
|
|
|
+import { useRoute, useRouter } from 'vue-router'
|
|
|
+import { setStorage, storageKey } from '../static/utils/storage'
|
|
|
import headerLayer from '../components/header.vue';
|
|
|
import footerLayer from '../components/footer.vue';
|
|
|
|
|
|
-function install() {
|
|
|
+const route = useRoute()
|
|
|
+
|
|
|
+const install = () => {
|
|
|
window.open(`https://chrome.google.com/webstore/detail/denet/inlfbeejfdgkknpiodhemfcokbdgofja`);
|
|
|
}
|
|
|
|
|
@@ -104,6 +108,14 @@ onMounted(() => {
|
|
|
observer.observe(el);
|
|
|
});
|
|
|
}
|
|
|
+
|
|
|
+ let str = route.query && route.query.params || ''
|
|
|
+ if (str) {
|
|
|
+ // @ts-ignore
|
|
|
+ let params = JSON.parse(atob(str));
|
|
|
+ setStorage(storageKey.userInfo, params)
|
|
|
+ location.href = `/`;
|
|
|
+ }
|
|
|
})
|
|
|
</script>
|
|
|
|