2023年2月

需要开启Windows防火墙
2023-02-10T01:39:41.png
在开启端口转发
2023-02-10T01:43:17.png

后记,这个不固定IP,还需要固定IP

wsl -d Ubuntu-22.04 -u root ifconfig wsl -d Ubuntu-22.04 -u root
ifconfig eth0 172.20.0.2/24 wsl -d Ubuntu-22.04 -u root route add
default gw 172.20.0.1 wsl -d Ubuntu-22.04 -u root service ssh start
powershell -c "Get-NetAdapter -IncludeHidden 'vEthernet (WSL)' |
Get-NetIPAddress | Remove-NetIPAddress -Confirm:$False;
New-NetIPAddress -IPAddress 172.20.0.1 -PrefixLength 24
-InterfaceAlias 'vEthernet (WSL)'; Get-NetNat | ? Name -Eq WSLNat | Remove-NetNat -Confirm:$False; New-NetNat -Name WSLNat
-InternalIPInterfaceAddressPrefix 172.20.0.0/24;"

懒得写vue的代码,直接将vue嵌入网页时候,由于用了flask {{}} 模板定义冲突了,可以通过以下解决

增加delimiters 这样vue的模板标志就变成{[ ]}
也可以
delimiters: ['$[',']']
那么标指就是$[ ]

const App = {

delimiters: ['{[',']}'],
data() {
    return {
歌曲封面
0:00