|
@@ -84,17 +84,17 @@ const stopWatch = watch(
|
|
|
}
|
|
|
|
|
|
// 单页面 非自己查看需要密码校验
|
|
|
- // if (currentLayout.value === RoutesName.show && !params.share) {
|
|
|
- // inputPwd.value = true;
|
|
|
- // await new Promise<void>((resolve) => {
|
|
|
- // const stopInputWatch = watchEffect(() => {
|
|
|
- // if (!inputPwd.value) {
|
|
|
- // stopInputWatch();
|
|
|
- // resolve();
|
|
|
- // }
|
|
|
- // });
|
|
|
- // });
|
|
|
- // }
|
|
|
+ if (currentLayout.value === RoutesName.show && !params.share) {
|
|
|
+ inputPwd.value = true;
|
|
|
+ await new Promise<void>((resolve) => {
|
|
|
+ const stopInputWatch = watchEffect(() => {
|
|
|
+ if (!inputPwd.value) {
|
|
|
+ stopInputWatch();
|
|
|
+ resolve();
|
|
|
+ }
|
|
|
+ });
|
|
|
+ });
|
|
|
+ }
|
|
|
|
|
|
params.share = true;
|
|
|
await refreshCase();
|