ThinkChat2.0新版上线,更智能更精彩,支持会话、画图、阅读、搜索等,送10W Token,即刻开启你的AI之旅 广告
[TOC] ## useUrlSearchParams history ``` import { useUrlSearchParams } from '@vueuse/core' const params = useUrlSearchParams('history') console.log(params.foo) // 'bar' params.foo = 'bar' params.vueuse = 'awesome' // url updated to `?foo=bar&vueuse=awesome` ``` Hash Mode ``` import { useUrlSearchParams } from '@vueuse/core' const params = useUrlSearchParams('hash') params.foo = 'bar' params.vueuse = 'awesome' // url updated to `#/your/route?foo=bar&vueuse=awesome` ```