main
王文龙 2023-11-27 11:35:22 +08:00
parent ad0c9923ce
commit 58d02e6e03
1 changed files with 12 additions and 1 deletions

View File

@ -13,6 +13,8 @@ const { push } = useRouter()
const route = useRoute() const route = useRoute()
const { day, week } = useDate() const { day, week } = useDate()
const pages = pageType() const pages = pageType()
const newId = ref<string>();
const scale = ref(1.5);
async function setModule(codes: any) { async function setModule(codes: any) {
const moduleCode = codes const moduleCode = codes
@ -83,6 +85,8 @@ async function getArticleP(page: any) {
watchEffect(() => { watchEffect(() => {
const { id } = route.params const { id } = route.params
if (!id) return if (!id) return
newId.value = id as string;
scale.value = id === '701' ? 2 : 1.5
getArticleP(1) getArticleP(1)
getArticle(1) getArticle(1)
getData() getData()
@ -365,9 +369,16 @@ function unescapeHTML(html: string) {
color: #fff !important; color: #fff !important;
font-size: 16px !important; font-size: 16px !important;
} }
p img{ span > img{
width: 100%; width: 100%;
object-fit: contain; object-fit: contain;
} }
p > img{
// width: 100%;
// object-fit: contain;
// transform: scale(1.5);
transform: scale(v-bind(scale));
transform-origin: top;
}
} }
</style> </style>