优化主题颜色
This commit is contained in:
@@ -92,6 +92,7 @@ useHead({ script: [{ src: "https://app.gter.net/bottom?tpl=header&menukey=vote"
|
||||
|
||||
import { useRoute, useRouter } from "vue-router"
|
||||
import { ElMessage } from "element-plus"
|
||||
import { da } from "element-plus/es/locale"
|
||||
|
||||
const route = useRoute()
|
||||
const router = useRouter()
|
||||
@@ -100,8 +101,10 @@ let isNeedLogin = inject("isNeedLogin")
|
||||
const goLogin = inject("goLogin")
|
||||
|
||||
let id = route.params.id
|
||||
const uniqidEnd = id.charAt(id.length - 1)
|
||||
const uniqidIndex = base62ToDecimal(uniqidEnd) % 6
|
||||
// const uniqidEnd = id.charAt(id.length - 1)
|
||||
// const uniqidIndex = base62ToDecimal(uniqidEnd) % 6
|
||||
|
||||
let uniqidIndex = ref(0)
|
||||
|
||||
onMounted(() => {
|
||||
getDetails()
|
||||
@@ -181,6 +184,9 @@ const getDetails = async () => {
|
||||
|
||||
let data = res.data
|
||||
|
||||
uniqidIndex.value = data.info?.id % 6
|
||||
// console.log(uniqidIndex.value)
|
||||
|
||||
info.value = data["info"]
|
||||
isvote.value = data["isvote"]
|
||||
iscollection.value = data["iscollection"]
|
||||
@@ -433,6 +439,7 @@ try {
|
||||
option.value = data["option"]
|
||||
isvote.value = data["isvote"]
|
||||
seo.value = data.seo
|
||||
uniqidIndex.value = data.info?.id % 6
|
||||
})
|
||||
}
|
||||
} catch (error) {}
|
||||
@@ -529,7 +536,7 @@ try {
|
||||
color: #333;
|
||||
margin-bottom: 30px;
|
||||
word-wrap: break-word;
|
||||
white-space: break-spaces
|
||||
white-space: break-spaces;
|
||||
}
|
||||
|
||||
.hint {
|
||||
|
Reference in New Issue
Block a user