|
|
|
@@ -946,10 +946,9 @@ export default { |
|
|
|
}; |
|
|
|
|
|
|
|
watch(selectedCat, () => { |
|
|
|
ApiServiece.get(`admin/attributes?category_id=${selectedCat.value}`) |
|
|
|
ApiServiece.get(`admin/attributes?category_id=${selectedCat.value}&with_global=1`) |
|
|
|
.then((resp) => { |
|
|
|
identities.value = resp.data.data; |
|
|
|
console.log(identities.value); |
|
|
|
}) |
|
|
|
.catch((err) => { |
|
|
|
console.log(err); |
|
|
|
@@ -957,10 +956,9 @@ export default { |
|
|
|
}); |
|
|
|
|
|
|
|
const getIdentities = () => { |
|
|
|
ApiServiece.get(`admin/attributes?category_id=${selectedCat.value}`) |
|
|
|
ApiServiece.get(`admin/attributes?category_id=${selectedCat.value}&with_global=1`) |
|
|
|
.then((resp) => { |
|
|
|
identities.value = resp.data.data; |
|
|
|
console.log(identities.value, "identities"); |
|
|
|
}) |
|
|
|
.then(() => { |
|
|
|
localIdentitiesIds.value = localIdentities.value.map( |
|
|
|
|