Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Bug] 編輯器v-html渲染頁面後,瀏覽器無法go back #877

Open
mingchiuli opened this issue Aug 27, 2023 · 0 comments
Open

[Bug] 編輯器v-html渲染頁面後,瀏覽器無法go back #877

mingchiuli opened this issue Aug 27, 2023 · 0 comments

Comments

@mingchiuli
Copy link

"dependencies": {
        "mavon-editor": "^3.0.1",
        "vue": "^3.3.4"
      },

代碼:

<script lang="ts" setup>

let blog: BlogExhibit = reactive({
  "content": ''
});

(async () => {
  let data: Data<BlogExhibit> =  await GET<BlogExhibit>(`/public/blog/info/${blogId}`)
  blog.content = data.content
})()
</script>
<template>
    <mavon-editor class="exhibit-mavon-editor" :boxShadow="false" :editable="false" :subfield="false" v-html="blog.content"
    :toolbarsFlag="false" defaultOpen="preview" previewBackground="#ffffff" code-style="androidstudio" />
</template>

渲染正常:
Screenshot 2023-08-27 at 10 11 53 PM

瀏覽器後退報錯:

Screenshot 2023-08-27 at 10 12 34 PM

直接後退失敗

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant