mirror of
https://github.com/acepanel/panel.git
synced 2026-02-04 09:13:49 +08:00
fix: 前端优化
This commit is contained in:
@@ -1,6 +1,4 @@
|
||||
<script lang="ts" setup>
|
||||
import { useTabStore } from '@/store'
|
||||
|
||||
defineOptions({
|
||||
name: 'app-index'
|
||||
})
|
||||
@@ -9,6 +7,7 @@ import { NButton } from 'naive-ui'
|
||||
import { useGettext } from 'vue3-gettext'
|
||||
|
||||
import app from '@/api/panel/app'
|
||||
import { useTabStore } from '@/store'
|
||||
import AppView from '@/views/app/AppView.vue'
|
||||
import EnvironmentView from '@/views/app/EnvironmentView.vue'
|
||||
import TemplateView from '@/views/app/TemplateView.vue'
|
||||
|
||||
@@ -27,6 +27,7 @@ const options = computed(() => {
|
||||
})
|
||||
|
||||
const handleSubmit = () => {
|
||||
doSubmit.value = true
|
||||
useRequest(app.install(info.value.slug, model.value.channel))
|
||||
.onSuccess(() => {
|
||||
window.$message.success(
|
||||
|
||||
@@ -1,11 +1,11 @@
|
||||
<script setup lang="ts">
|
||||
import ComposeView from '@/views/container/ComposeView.vue'
|
||||
import { useGettext } from 'vue3-gettext'
|
||||
|
||||
defineOptions({
|
||||
name: 'container-index'
|
||||
})
|
||||
|
||||
import { useGettext } from 'vue3-gettext'
|
||||
|
||||
import ComposeView from '@/views/container/ComposeView.vue'
|
||||
import ContainerView from '@/views/container/ContainerView.vue'
|
||||
import ImageView from '@/views/container/ImageView.vue'
|
||||
import NetworkView from '@/views/container/NetworkView.vue'
|
||||
|
||||
@@ -1,6 +1,4 @@
|
||||
<script lang="ts" setup>
|
||||
import TheIconLocal from '@/components/custom/TheIconLocal.vue'
|
||||
|
||||
defineOptions({
|
||||
name: 'home-index'
|
||||
})
|
||||
@@ -19,6 +17,7 @@ import { NButton, NPopconfirm, useThemeVars } from 'naive-ui'
|
||||
import { useGettext } from 'vue3-gettext'
|
||||
|
||||
import home from '@/api/panel/home'
|
||||
import TheIconLocal from '@/components/custom/TheIconLocal.vue'
|
||||
import { router } from '@/router'
|
||||
import { useTabStore } from '@/store'
|
||||
import { formatDateTime, formatDuration, toTimestamp } from '@/utils/common'
|
||||
|
||||
Reference in New Issue
Block a user