This commit is contained in:
zmj 2024-02-27 16:35:49 +08:00
parent 14d7b60982
commit 3141a3cea7
2 changed files with 6 additions and 5 deletions

View File

@ -1,10 +1,12 @@
<script setup lang="ts">
// URL
const queryString = window.location.search;
// URL
var queryString = window.location.hash.split("?")[1];
//
const searchParams = new URLSearchParams(queryString);
// id
const uid = searchParams.get('local') || '';

View File

@ -1,4 +1,4 @@
import { createRouter, createWebHistory } from 'vue-router'
import { createRouter, createWebHashHistory } from 'vue-router'
const routes = [
{
@ -51,8 +51,7 @@ const routes = [
]
const router = createRouter({
mode: 'hash',
history: createWebHistory(),
history: createWebHashHistory(),
routes
})