|
|
@@ -16,6 +16,7 @@ import { useBasicLayout } from '@/hooks/useBasicLayout'
|
|
|
import { useChatStore, useAppStore, usePromptStore, useAuthStore, useUserMemberStore } from '@/store'
|
|
|
import { fetchChatAPIProcess } from '@/api'
|
|
|
import { t } from '@/locales'
|
|
|
+import { useTheme } from '@/hooks/useTheme'
|
|
|
import { emitter } from '@/plugins'
|
|
|
|
|
|
let controller = new AbortController()
|
|
|
@@ -432,6 +433,8 @@ onUnmounted(() => {
|
|
|
if (loading.value) controller.abort()
|
|
|
})
|
|
|
|
|
|
+const { isDark } = useTheme()
|
|
|
+
|
|
|
const appStore = useAppStore()
|
|
|
const showMine = ref(false)
|
|
|
function goMine() {
|
|
|
@@ -565,8 +568,10 @@ function goVip() {
|
|
|
</footer>
|
|
|
|
|
|
<n-modal v-model:show="showMine" transform-origin="center">
|
|
|
- <n-card :border="false" class="!max-w-xl !rounded-xl">
|
|
|
- <mine-pannel></mine-pannel>
|
|
|
+ <n-card :bordered="false" class="!max-w-xl !rounded-xl" content-style="padding:0">
|
|
|
+ <div class="pt-3 rounded-xl">
|
|
|
+ <mine-pannel></mine-pannel>
|
|
|
+ </div>
|
|
|
</n-card>
|
|
|
</n-modal>
|
|
|
|
|
|
@@ -574,11 +579,17 @@ function goVip() {
|
|
|
v-model:show="showVip"
|
|
|
:block-scroll="false"
|
|
|
transform-origin="center"
|
|
|
- class="max-w-md py-3"
|
|
|
+ class="max-w-md"
|
|
|
style="width: 75%"
|
|
|
>
|
|
|
- <n-card :border="false" class="!rounded-xl !max-h-[80vh]" content-style="padding:0;overflow:auto">
|
|
|
- <vip-pannel></vip-pannel>
|
|
|
+ <n-card
|
|
|
+ :bordered="false"
|
|
|
+ class="!rounded-xl !max-h-[80vh] !overflow-hidden"
|
|
|
+ content-style="padding:0;overflow:auto"
|
|
|
+ >
|
|
|
+ <div class="vipCard py-3 rounded-xl" :class="{ dark: isDark }">
|
|
|
+ <vip-pannel></vip-pannel>
|
|
|
+ </div>
|
|
|
</n-card>
|
|
|
</n-modal>
|
|
|
|
|
|
@@ -587,3 +598,13 @@ function goVip() {
|
|
|
</n-modal>
|
|
|
</div>
|
|
|
</template>
|
|
|
+
|
|
|
+<style lang="less" scoped>
|
|
|
+.vipCard {
|
|
|
+ background: linear-gradient(180deg, #f7f3ff, #f7f3ff 180px, #fff 200px, #fff);
|
|
|
+
|
|
|
+ &.dark {
|
|
|
+ background: linear-gradient(180deg, #000033, #000033 180px, #0f1014 200px, #0f1014);
|
|
|
+ }
|
|
|
+}
|
|
|
+</style>
|