我为module申请编写了自己的nuxt.js。自升级到版本1.4.0 此行:
x,s = np.array(x),np.array(s)
ind = np.argsort(x)
x,s = x[ind],s[ind]
unique_x = np.unique(x)
catsums=[]
for k in unique_x:
catsums.append(np.sum(s[np.where(x==k)]))
plt.plot(u,catsums,'--r')
plt.stem(a,v1)
生成以下警告:
nuxt.plugin('关闭',...)已弃用。使用新的挂钩系统。
然而,似乎没有任何关于这个新钩子系统的文件'
谁能告诉我我要改变什么?
提前谢谢!
答案 0 :(得分:1)
使用this.nuxt.hook(NAME, FN)
调用new hooks。
// this.nuxt.plugin('close', () => {...})
this.nuxt.hook('close', () => {...})