fix: 预览逻辑bug
This commit is contained in:
@@ -222,12 +222,15 @@ const toPage = (path, title) => {
|
||||
document.title = title;
|
||||
};
|
||||
|
||||
const toPreview = () => {
|
||||
router.push({
|
||||
path: "/preview",
|
||||
query: route.query,
|
||||
});
|
||||
document.title = name;
|
||||
const toPreview = async () => {
|
||||
var res = await canPlanetPublish(route.query.sn);
|
||||
if (res) {
|
||||
router.push({
|
||||
path: "/preview",
|
||||
query: route.query,
|
||||
});
|
||||
document.title = name;
|
||||
}
|
||||
};
|
||||
|
||||
const openPublishModal = async () => {
|
||||
@@ -238,7 +241,7 @@ const openPublishModal = async () => {
|
||||
visible.value = true;
|
||||
return;
|
||||
}
|
||||
|
||||
|
||||
// //console.log();
|
||||
// // return;
|
||||
// let isFb = true;
|
||||
|
||||
Reference in New Issue
Block a user