日期: 2020 年 12 月 24 日

  • vue中使用fingerprintjs生成终端id

    安装组件:

    npm i @fingerprintjs/fingerprintjs -S
    # or
    yarn add @fingerprintjs/fingerprintjs -S

    创建一个async的methord:

    async asyncCall() {
          // We recommend to call `load` at application startup.
          const fp = await FingerprintJS.load()
    
          // The FingerprintJS agent is ready.
          // Get a visitor identifier when you'd like to.
          const result = await fp.get()
    
          // This is the visitor identifier:
          const visitorId = result.visitorId
    
          console.log(visitorId)
          return visitorId
        }

    在业务代码中使用:

    this.asyncCall().then(res => {
                const terminalId = res
                that.$api
                  .Login({
                    employeeNumber: that.formLogin.employeeNumber,
                    password: that.formLogin.password,
                    terminalId: terminalId,
                    terminalType: that.formLogin.terminalType
                  })
                  .then(() => {
                  // 登录成功后的操作
                   
                  })
              })
  • 弃坑墨刀,转用Pencil Project

    用了两年的企业版墨刀,今年决定不续费了,太贵了,不好意思让公司掏钱买。

    看了下,在墨刀上也攒了不少项目了。这算是这两年的钱没有白掏,至少比之前见不到任何项目痕迹要好得多。

    但是如何留存项目过程的设计文档,如何更好地进行版本管理,如何更好地同步团队的开发进度,多模块交叉开发,始终是一个问题,不希望过多的精力放在需求管理上,但放得太粗了,没有一个特别紧密配合默契的团队是很难进行的好的。

    暂时用Pencil Project,然后基于它想办法来实现在线同步。