PC/node_modules/vue-js-cookie/vue-js-cookie.min.js
2026-01-26 23:20:48 +08:00

2 lines
560 B
JavaScript

!function(){var e="function"==typeof require?require("js-cookie"):window.Cookies;if(!e)throw new Error("[vue-js-cookie] cannot locate js-cookies");var o={install:function(e){e.prototype.$cookie=this,e.cookie=this},set:function(o,t,n){var i=n;return"object"!=typeof n&&(i={expires:n}),e.set(o,t,i)},get:function(o){return e.get(o)},getJSON:function(o){return e.getJSON(o)},remove:function(e,o){this.remove(e,o)}};"object"==typeof exports?module.exports=o:"function"==typeof define?define([],function(){return o}):window.Vue&&(window.VueCookie=o,Vue.use(o))}();