|
@@ -26,9 +26,7 @@ export default defineComponent({
|
|
|
|
|
|
|
|
// 是否显示 title
|
|
// 是否显示 title
|
|
|
const isShow = computed(() => {
|
|
const isShow = computed(() => {
|
|
|
- return (
|
|
|
|
|
- title.value && title.value != '/' && !title.value.includes('-taro')
|
|
|
|
|
- );
|
|
|
|
|
|
|
+ return title.value && title.value != '/' && !title.value.includes('-taro');
|
|
|
});
|
|
});
|
|
|
// 当当前路由发生变化时,调用回调函数
|
|
// 当当前路由发生变化时,调用回调函数
|
|
|
watch(
|
|
watch(
|
|
@@ -38,11 +36,9 @@ export default defineComponent({
|
|
|
const { hash } = window.top.location;
|
|
const { hash } = window.top.location;
|
|
|
if (!isMobile && route.hash != hash) {
|
|
if (!isMobile && route.hash != hash) {
|
|
|
// window.top.location.replace(`${origin}${pathname}#/${route.hash}`);
|
|
// window.top.location.replace(`${origin}${pathname}#/${route.hash}`);
|
|
|
- title.value =
|
|
|
|
|
- (route?.meta?.ComponentName as string) || (route.name as string);
|
|
|
|
|
|
|
+ title.value = (route?.meta?.ComponentName as string) || (route.name as string);
|
|
|
} else {
|
|
} else {
|
|
|
- title.value =
|
|
|
|
|
- (route?.meta?.ComponentName as string) || (route.name as string);
|
|
|
|
|
|
|
+ title.value = (route?.meta?.ComponentName as string) || (route.name as string);
|
|
|
}
|
|
}
|
|
|
},
|
|
},
|
|
|
{
|
|
{
|
|
@@ -57,6 +53,15 @@ export default defineComponent({
|
|
|
</script>
|
|
</script>
|
|
|
|
|
|
|
|
<style lang="scss">
|
|
<style lang="scss">
|
|
|
|
|
+html,
|
|
|
|
|
+body {
|
|
|
|
|
+ height: 100%;
|
|
|
|
|
+ width: 100%;
|
|
|
|
|
+ background: #fff;
|
|
|
|
|
+ margin: 0;
|
|
|
|
|
+ padding: 0;
|
|
|
|
|
+}
|
|
|
|
|
+
|
|
|
#app {
|
|
#app {
|
|
|
background: #fff;
|
|
background: #fff;
|
|
|
height: 100%;
|
|
height: 100%;
|