indentno / vue-url-parameters

A vue mixin that simplifies working with url parameters. The package is developed for the purpose of allowing the key and values of a vue filter to be defined with url parameters.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

how i can pass this params

nazaninhesari opened this issue · comments

i have this structure please help me how i can set to url just key ?

example 👍
user=1&type=2

				 params:{
					user:{
						key:null,
						value:null,
					},
					type:{
						key:null,
						value:null,
					},
					created_at:{
						key:null,
						value:null,
					},					
	
				 },

I don't think that's possible. If I remember correctly it only supports one level inside of params. So if you want it to work you could do something like this:

params: {
  user_key: null,
  user_value: null,
  type_key: null,
  ...
}

it tested it but my structure is this.

You will have to change your structure in order for this package to work. If you can't do that you'll have to either add support for it in this package and submit a PR or find an other solution.

i change line 120 to this

let value = data[key].key;

work correctly !!!