apptools-lab / AppWorks

🐻 基于 VS Code 插件的前端研发工具集,站点国内镜像:https://apptools.gitee.io

Home Page:https://appworks.site/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

type 为 vue 的物料发布到 flusion 变成了 react

berryliu opened this issue · comments

commented

插件名/Extension: appworks

您的本地环境信息

  • 操作系统及其版本/ window 10
  • Node version: v12.13.0
  • npm version: v6.12.0

您遇到的问题及复现步骤/What are your problems and how to reproduce them

本地 npm run generate 生成的 materials.json type 是 vue

{
  "template": "@icedesign/ice-vue-material-template",
  "type": "vue",
  "fusion-site": {
    "id": 19985,
    "name": "xxx",
    "url": "https://fusion.design/api/v1/sites/19985/materials"
  },
  // ...
}

发布到 fusion 后 type 变成 react

{
    type: "react",
    blocks: [
      {
        appId: null,
        baseUrl: "https://mc.fusion.design/unpkg/@zv-vue-materials/simple-demo@0.1.1/",
        browses: 13,
        bu: null,
        //...
       }
    ]
}

您期待的正确结果/The right result you're looking forward to

  • 期望 type 能保持一致
  • 期望能完全支持 vue