head: {
title: 'nanjustar',
htmlAttrs: {
lang: 'en'
},
meta: [
{ charset: 'utf-8' },
{ name: 'viewport', content: 'width=device-width, initial-scale=1' },
{ hid: 'description', name: 'description', content: '' },
{ name: 'format-detection', content: 'telephone=no' }
],
link: [
{ rel: 'icon', type: 'image/x-icon', href: '/favicon.ico' },
],
script: [
{ src: "https://l2dwidget.js.org/lib/L2Dwidget.min.js", body: true },
{ src:"/kanban.js",body:true}
],
},
之所以这里容易找不到js,是因为路径写错了。
src/这里默认的根路径是static文件夹
所以把你写的js文件放到static文件夹下就可以了。