Vue3 uni-app watch 监听不到、不生效

有这么一个场景,A页面跳转到B页面,然后A页面监听了一个Store,然后B页面修改Store,再切回来,A页面竟然监听不到?

他喵 🐱 的,watch了半天,不生效,不知道什么鬼。

watch(
[
pickTicketStore.ship,
userStore.user,
pickTicketStore.isOnlySupportManualPay,
],
([ship, user, isOnlySupportManualPay]) => {
// Do something with ship, user, isOnlySupportManualPay
},
{ immediate: true }
);
阅读更多

macOS markdown 转 docx

一行代码直接搞定:

➜  ~ pip3 install pypandoc
Collecting pypandoc
Downloading pypandoc-1.15-py3-none-any.whl.metadata (16 kB)
Downloading pypandoc-1.15-py3-none-any.whl (21 kB)
Installing collected packages: pypandoc
Successfully installed pypandoc-1.15
➜  ~ python3 -c "import pypandoc; pypandoc.convert_text(open('input.md').read(), 'docx', format='md', outputfile='output.docx', extra_args=['--standalone'])" 

Flutter删除缓存

删除.pub-cache

删除对应的库,比如:

rm -rf ~/.pub-cache/git/flutter_xxx*

删除 pub 缓存

flutter pub cache repair

重装

flutter clean
rm -rf pubspec.lock
flutter pub get

Pod 重装

你懂得 …

M1 Pro iOS lame 编译报错

iOS编译lame报错:

Building for 'iOS-simulator', but linking in object file (/Users/mac/.pub-cache/git/flutter_plugin_record-d11120b8be154e38c6e36fc895ec6ea8c612375c/ios/lame-ios.framework/lame-ios[arm64][2](VbrTag.o)) built for 'iOS'

这一看lame官网,好家伙,最后一个版本 2017 年发布的,你搁哪儿给我扯蛋呢?

阅读更多