ForChange客服小弟

Results 118 issues of ForChange客服小弟

背景 ``` ``` ``` htmlPlugin({ entry: './code/src/main.ts', template: './code/index.html', }), injectHtml({ data: { injectScript: '', }, }), ``` 但是实际上没有替换结果 ---------------------- 生成的结果是 ``` dist/index.html dist/main/main.9009b61d.css dist/main/main.27b39151.js ``` 这里的main如何自定义

背景 ``` // frameworkLayout const layout = isTrue ? layout1 : layout2; return {children} ``` - 根据不同flag切换不同layout - 由于是frameworkLayout,所以切换的时候会触发children的重渲染,从而触发子应用重新加载(猜测) - 而又由于这个flag切的太快,导致第一次子应用还没完全加载就重新加载了第二次 - 就会出现 ``` icestark minified message #4: Can not...

bug
3.0

场景 来回切换两个子应用,内存无限上涨 两个子应用都是默认的框架没有任何修改 内存完全完全不会销毁 这种情况要怎么办,用户可能切几次就炸了 是不是因为用的是本地调试的模式,因为没测试过 ``` getApps: async () => { const apps = [ { path: '/app/1', title: '应用1', sandbox: true, umd: true, url: ['http://127.0.0.1:3333/js/index.js', 'http://127.0.0.1:3333/css/index.css'], }, {...

enhancement

如果使用this.oData去修改数据,就没办法获取到**setData引起的界面更新渲染完毕后的回调函数** 如果使用setData则this.oData不会同步更新 ``` const _pageConf = { name: "Sign", data: { test: 5 }, async onLoad() { console.log(this.data.test, this.oData.test); // 5 5 await this.$sleep(2000); this.data.test = 10; this.setData({ test: 12...

背景 ``` pnpm i --shamefully-hoist ``` 运行dev ``` [ Midway ] start error: Cannot read property 'namespace' of undefined TypeError: Cannot read property 'namespace' of undefined at ContainerConfiguration.loadComponentObject (node_modules/.pnpm/@[email protected]/node_modules/@midwayjs/core/dist/context/configuration.js:174:41) at...

No update status for a long time

背景: ``` RUN pnpm i --shamefully-hoist --registry=https://registry.npmmirror.com RUN pnpm run build RUN pnpm prune --production ``` 运行的时候报错,说没找到 ``` egg-session egg-onerror ... ``` 然后我再次安装egg,没有效果,需要一个一个安装这些子依赖,很奇怪不知道pnpm是怎么搞的 - 如果使用pnpm i -P正常 - 如果使用yarn npm这些也正常...

No update status for a long time

背景 ``` @Provide() export class MailService {} @Quene() export class Task { @Inject() recordService: MailService ... } ``` - 然后就会报错`recordService in class Task is not valid in current context` -...

背景 - 我看到有rabbitMQ组件,看起来不错 - 然后我们用的是kafka,也想求一下支持 需求 - 支持kafka组件

第一个:ignore传入数组时未正确判断 然后 compiler这句确实不能支持多目录 ![image](https://user-images.githubusercontent.com/5879146/137301088-a605deb0-98c3-46aa-b3e4-a99ec29a838e.png) _Originally posted by @xmsz in https://github.com/midwayjs/midway/discussions/1327#discussioncomment-1476108_ ------- 第二个:import后包后未正确识别或者说是不是应该没有这句 ``` import "rank.proto" ``` 结果变成 ![image](https://user-images.githubusercontent.com/5879146/137301984-59bef497-7495-44cc-8874-139f53f45fc8.png) 感觉如果import了就不用再导入了 --------- 第三个:如何支持wrapper? ``` import "google/protobuf/wrappers.proto"; message Test { google.protobuf.Int32Value a =...

我的需求是 - /* => 云函数A - /api/* => 云函数B 下面是我云函数A的配置表 ``` service: we-mp-admin-web provider: name: aliyun ## 发布的云平台,aliyun,tencent 等 deployType: static custom: customDomain: domainName: cps-admin.pmlife.work package: include: - build ##...