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