generated from duanshuwen/webapp-vue-frontend
feat: 创建了请求的接口
This commit is contained in:
@@ -7,11 +7,14 @@
|
||||
</template>
|
||||
|
||||
<script setup>
|
||||
import { Session } from '@utils/storage'
|
||||
|
||||
const router = useRouter()
|
||||
const KeepAliveList = ref([])
|
||||
|
||||
router.beforeEach((to, from, next) => {
|
||||
const keepAlive = to?.meta?.keepAlive
|
||||
Session.set('token', to.query.token)
|
||||
|
||||
if (!router.hasRoute(to.name)) {
|
||||
router.push('/home')
|
||||
|
||||
Reference in New Issue
Block a user