Skip to content

amis debug功能关闭不了 #12242

@yangjunzhou861012

Description

@yangjunzhou861012

描述问题:

vue2集成了amis6.13.0的amis-editor功能,系统正常启动,运行,访问,但是前端一直有日志,关闭不了

请用一段清晰简洁的文字描述问题是什么...

截图或视频:

Image

可以的话,尽可能提供截图或视频来补充描述你的问题...
系统已经设置了AMISDebug等参数,如图

页面预览的地方设置:
Image
系统设置:

Image index页面设置 Image

如何复现(请务必完整填写下面内容):

  1. 你是如何使用 amis 的?
    sdknpm其他...
    npm方式

  2. amis 版本是什么?请先在最新 beta 版本测试问题是否存在
    amis6.13.0

  3. 粘贴有问题的完整 amis schema 代码:

<template>
  <div>
    <amis-editor
      id="viewPortalContainer"
      ref="viewPortalContainer"
      :debug="false"
      :enableAMISDebug="false"
      :env="env"
      v-model="schema"
      theme="cxd"
      :preview="true"
    />
  </div>
</template>

<script>
// 导入React相关依赖
import { ReactInVue } from 'vuera'
// 导入必要的样式文件
import 'amis/lib/themes/cxd.css'
import 'amis/sdk/helper.css'
import 'amis/sdk/iconfont.css'
import { Editor } from 'amis-editor'
import request from '@/utils/request'

export default {
  name: 'ViewPortal',
  components: {
    AmisEditor: ReactInVue(Editor)
  },
  data() {
    return {
      portalid: null,
      isInited: true,
      env: {enableAMISDebug: false},
      previewModel: false,
      mobileModel: false,
      schema: {},
      portalJson: {},
      // 用于跟踪外观面板的观察者
      panelObserver: null
    }
  },
  created() {
    this.portalid = this.$route.params.portalid
    this.initPortail()
  },
  methods: {
    initPortail() {
       window.enableAMISDebug = false
      
    }
  }
}
</script>

<style scoped>
/* 编辑器容器基础样式 */
.theme-editor-fix-container {
  width: 100%;
}

</style>

  1. 操作步骤
    请简单描述一下复现的操作步骤...
    npm安装好
    "amis": "^6.13.0",
    "amis-core": "6.13.0",
    "amis-editor": "^6.13.0",
    "amis-editor-core": "6.13.0",
    "amis-formula": "6.13.0",
    "amis-theme-editor-helper": "^2.0.26",
    "amis-ui": "6.13.0",
    等相关依赖,然后按上述代码集成amis,之后右侧一直有日志,尤其是页面右侧,很容易让人误点

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions