This commit is contained in:
A1300399510
2023-08-03 18:53:19 +08:00
parent 72af528484
commit 1dd2f37c29
2 changed files with 6 additions and 3 deletions

View File

@@ -33,14 +33,16 @@
<script setup> <script setup>
import { ref } from 'vue'; import { ref } from 'vue';
import { useRoute, useRouter } from 'vue-router'; import { useRoute, useRouter } from 'vue-router';
import { redirectToExternalWebsite } from '@/utils/util.js'
const router = useRouter() const router = useRouter()
const props = defineProps({ const props = defineProps({
item: Object, item: Object,
}); });
const goapArtmentDetails = () => router.push(`/apartmentDetail?uniqid=${props['item'].uniqid}`) const goapArtmentDetails = () => redirectToExternalWebsite(`${location.origin}/apartmentDetail?uniqid=${props['item'].uniqid}`)
// router.push(`/apartmentDetail?uniqid=${props['item'].uniqid}`)
</script> </script>

View File

@@ -10,7 +10,7 @@ NProgress.configure({
easing: "ease", // 动画方式 easing: "ease", // 动画方式
speed: 2500, // 递增进度条的速度 speed: 2500, // 递增进度条的速度
showSpinner: false, // 是否显示加载ico showSpinner: false, // 是否显示加载ico
trickleSpeed: 200, // 自动递增间隔 trickleSpeed: 800, // 自动递增间隔
minimum: 0.9, // 初始化时的最小百分比 minimum: 0.9, // 初始化时的最小百分比
}); });
@@ -145,6 +145,7 @@ router.beforeEach((to, from, next) => {
router.afterEach(() => { router.afterEach(() => {
NProgress.done(); NProgress.done();
console.log("NProgress",NProgress);
console.log("结束"); console.log("结束");
}) })
export default router export default router