swem: 改 promise 後可以在 app.ls 的 state 中用 resolve: 要求進入某個 state 前要先 resolve 某個 promise