vue-sellsuki-auth-2
Advanced tools
Comparing version 2.5.5 to 2.5.6
@@ -79,3 +79,4 @@ /* global localStorage */ | ||
// try to set localstorage from cookie | ||
Vue.prototype.$sellsuki_auth.initLocalStorage = (storeId) => { | ||
Vue.prototype.$sellsuki_auth.initLocalStorage = (storeId, urlPath) => { | ||
let path = urlPath || '/' | ||
var string = window.location.origin, | ||
@@ -96,3 +97,3 @@ substring = "localhost"; | ||
} else { | ||
scope.router.push({ path: '/' }) | ||
scope.router.push({ path: path }) | ||
} | ||
@@ -99,0 +100,0 @@ } |
{ | ||
"name": "vue-sellsuki-auth-2", | ||
"version": "2.5.5", | ||
"version": "2.5.6", | ||
"description": "vue-sellsuki-auth new version", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
@@ -21,2 +21,3 @@ Sellsuki Auth v2 | ||
* Fix authMiddleware and Extend option's flag check (2.5.5) | ||
* add optional path parameter for initLocalStorage (2.5.6) | ||
@@ -146,2 +147,1 @@ ## Requirement | ||
``` | ||
14993
249