安装cookie依赖包
npm i @vueuse/integrations
安装cookie
npm i universal-cookie
使用cookie
import {useCookies} from "@vueuse/integrations/useCookies"
const cookie = useCookies();
存取cookie
cookie.set("token","123456789")
获取cookie
cookie.get("token")
标签:npm,存储,vue,vueuse,integrations,useCookies,cookie From: https://www.cnblogs.com/7788mmhh/p/17376595.html