correction pb d'accès aux pages statiques 2
This commit is contained in:
parent
7faba809bd
commit
2ed8980a01
|
@ -217,8 +217,12 @@ export const useContentStore = defineStore('content', {
|
||||||
this.map = map;
|
this.map = map;
|
||||||
try {
|
try {
|
||||||
const response = await REST.get(`/jsonapi/node/static/`);
|
const response = await REST.get(`/jsonapi/node/static/`);
|
||||||
|
console.log("CONTENT, response : ", response);
|
||||||
|
|
||||||
for (let page of response.data.data) {
|
for (let page of response.data.data) {
|
||||||
|
|
||||||
|
console.log("CONTENT, page.attributes : ", page.attributes);
|
||||||
|
|
||||||
if (page.attributes?.drupal_internal__nid == nid) {
|
if (page.attributes?.drupal_internal__nid == nid) {
|
||||||
for (let metatag of page.attributes.metatag) {
|
for (let metatag of page.attributes.metatag) {
|
||||||
if (metatag.tag === "link") {
|
if (metatag.tag === "link") {
|
||||||
|
|
Loading…
Reference in New Issue