<div>   
    <event-log  :eventtag-id="id"  event-name="sanbi"></event-log>
</div>

mpvue里有一个这样的自定义组件event-log,在页面引用的时候第一次eventtag-id传1进去,

第二次在同一个页面再调用一次传递eventtag-id = 2进去此时组件内接收的还是1,组件内接收代码如下。

 props: {
    eventtagId:{
      type:String,
      default:''
    },
    eventName:{
      type:String,
      default:''
    },
  },

这样就会有一个延迟,当次打开的页面数据是上一次的数据

解决方案。用watch监听触发函数

watch: {
    eventName: {
      handler(newValue) {
        if (newValue) {
          this.eventName = newValue
          this.getEventLog() // 触发函数

        }
      },
      deep: true,
      immediate: true
    },
    eventtagId: {
      handler(newValue) {
        if (newValue) {
          this.eventtagId = newValue
          this.getEventLog()  // 触发函数
 
        }
      },
      deep: true,
      immediate: true
    }
  },

dhcp server ip-pool 地址池名字

查看所有dhcp池的信息 display dhcp server tree all

查看dhcp地址池
display dhcp server ip-in-use pool serverstatic
gateway-list 192.168.1.1
dns-list 192.168.1.1
static-bind ip-address 192.168.1.29 mask 255.255.255.0 hardware-address 000c-294f-6cda
static-bind mac-address 000c-294f-6cda
删除
undo static-bind ip-address 192.168.1.29 mask 255.255.255.0
display dhcp server ip-in-use pool serverstatic查看所有分配的ip

static-bind ip-address 192.168.1.27 client-identifier b47a-f1a0-d120

华三h3c msr830-10-winet一共有4个wan口6个lan口,由于家用没那么多wan用得上,所以决定把wan作为lan口省下交换机

在端口模式下把wan改br,命令如下

登录到路由器

#登录

telnet 192.168.1.1

进入系统模式

system-view

#选择端口我选GE9号端口

interface GigabitEthernet 0/9

修改为br模式 桥接模式

port link-mode br

修改完毕,本来是有4个wan口的,现在剩下2个

首先我设置了直通pcie网卡,把一台win10的机器

然后开机提示:失败 – 内存设置无效: 内存预留 (sched.mem.min) 应该等于内存大小 (8192)。

这里就要打开虚拟机的设置,选择内存手动把内存分配了先,可以用红色这里把预留给填满,或者绿色那里打勾即可。

在vue上使用videojs播放m3u8文件,然后在页面切换到下一个页面的时候,出现播放器重复定义的问题:

提示:Player “my-video” is already initialised. Options will not be applied.

需要在路由销毁前把播放器销毁即可,然后mounted的时候进行初始化。

具体代码

<video      ref="myVideoPlayer"
          id="my-video"
          class="video-js vjs-default-skin vjs-big-play-centered"
          controls
         style="width: 100%;height:100%"
      >
        <source type="application/x-mpegURL" />
      </video>


js部分
mounted(){
 this.myPlayer = videojs(
          "my-video",
          {
            bigPlayButton: true,
            textTrackDisplay: false,
            posterImage: true,
            errorDisplay: false,
            controlBar: true,
            controls:true,
            hls: {
              withCredentials: true
            }
          },
          function () {
            this.on('play', function () {
              console.log('playing')
                that.doPlay()
            })
            //this.play();
            console.log('myPlayer ready')
          }
      );}
 beforeDestroy() {
    this.myPlayer.dispose();  //销毁播放器
  }

由于要使用guzzle发送json数据 ,请求正文是一张图片的base64数据,2.8Mb左右,尝试过如果随便输入字符几个一下子发送;但是真正打包数据发送则会卡住curl一直不返回。

于是通过尝试使用curl发送也一样,后来想到了修改curl的配置,分别设置如下curl配置,则可以马上执行。

CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_0, // 使用1.0的http版本
CURLOPT_IPRESOLVE => CURL_IPRESOLVE_V4 ,
CURLOPT_HTTPHEADER => array('Expect: '),

首先配置配置php命令行,

安装xdebug, 如果要在postman调试,那么要在postman的get参数加上如下图所示

XDEBUG_SESSION_START = PHPSTORM

php7.4的xdebug配置如下

[XDebug]
xdebug.profiler_append = 0
xdebug.profiler_enable = 1
xdebug.profiler_enable_trigger = 0
xdebug.profiler_output_dir ="D:\BtSoft\temp\xdebug"
xdebug.trace_output_dir ="D:\BtSoft\temp\xdebug"
xdebug.profiler_output_name = "cache.out.%t-%s"
xdebug.remote_enable = 1
xdebug.remote_handler = "dbgp"
xdebug.remote_host = "127.0.0.1"
zend_extension=php_xdebug.dll

//创建插件 (GaoDeLocation为插件名称, com.zhaoying.GaoDeLocation为插件id
plugman create –name GaoDeLocation –plugin_id com.zhaoying.GaoDeLocation–plugin_version 1.0.0

//进入GaoDeLocation 目录
cd GaoDeLocation

//为插件添加android平台(此处只添加了安卓,如果要开发ios插件请执行plugman platform add –platform_name ios)
plugman platform add –platform_name android

//插件文档

plugman createpackagejson .