Answer the question
In order to leave comments, you need to log in
How to force the desktop version to open inside an iframe?
This is a personal project, if anything :)
I am writing a kind of template page generator on vuejs.
I decided to organize a preview of the created pages.
They lie on the same domain as the api.
Now, when saving the editor, an array of pages comes from api: link + title
The list of pages on the right is organized as an accordion, when clicked on in the left iframe, the url changes to the corresponding page preview.
<v-col cols="8">
<iframe
name="main"
:src="iframe.src"
@load="frameLoad"
v-show="iframe.loaded"
sandbox="allow-scripts"
width="750" height="750" frameborder="1"
></iframe>
<img v-show="!iframe.loaded" src="/assets/img/loading.gif" width="200" alt="loading">
</v-col>
<v-col cols="4" >
<v-expansion-panels accordion v-model="first">
<template v-for="(elem, index) in pages">
... перечень страниц....
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question