cmp-cc / vue-cookies

A simple Vue.js plugin for handling browser cookies
MIT License
408 stars 70 forks source link

let user determine whether encode cookie's value or not #67

Open lifubang opened 3 years ago

lifubang commented 3 years ago

Fix #66 As mentioned in #66, I think we should provide a way to let us determine whether we should encode cookie's value or not. And we should compatible with the previous operations, so we should encode the cookie's value by default. This patch provides two ways to cancel encode operation:

  1. set default config: this.$cookies.config(expireTimes, path, domain, secure, sameSite, encodeValue);
  2. use this.$cookies.encodeValue(true/false)

Signed-off-by: lifubang lifubang@acmcoder.com

Xayer commented 3 years ago

Why is this still waiting? This is keeping people from using the package, which already is one of the only solutions to get cookies implemented in Vue. 🙁