2017-11-27 19:21:12 -05:00
|
|
|
<template>
|
|
|
|
<div id="app">
|
2023-01-06 04:21:27 -05:00
|
|
|
<router-view />
|
2017-11-27 19:21:12 -05:00
|
|
|
</div>
|
|
|
|
</template>
|
|
|
|
|
2023-01-06 04:21:27 -05:00
|
|
|
<script lang="ts" setup>
|
|
|
|
import { useStore } from '@/hooks/useStore'
|
|
|
|
import { onBeforeMount } from 'vue'
|
|
|
|
import { getConfig } from './utils/dataSender'
|
|
|
|
import type { IConfig } from 'picgo'
|
|
|
|
|
|
|
|
const store = useStore()
|
|
|
|
onBeforeMount(async () => {
|
|
|
|
const config = await getConfig<IConfig>()
|
|
|
|
if (config) {
|
|
|
|
store?.setDefaultPicBed(config?.picBed?.uploader || config?.picBed?.current || 'smms')
|
|
|
|
}
|
|
|
|
})
|
|
|
|
|
|
|
|
</script>
|
|
|
|
|
|
|
|
<script lang="ts">
|
2019-12-19 06:17:21 -05:00
|
|
|
export default {
|
2023-01-06 04:21:27 -05:00
|
|
|
name: 'PicGoApp'
|
2019-12-19 06:17:21 -05:00
|
|
|
}
|
2017-11-27 19:21:12 -05:00
|
|
|
</script>
|
|
|
|
|
|
|
|
<style lang="stylus">
|
|
|
|
body,
|
|
|
|
html
|
|
|
|
padding 0
|
|
|
|
margin 0
|
|
|
|
height 100%
|
|
|
|
font-family "Helvetica Neue",Helvetica,"PingFang SC","Hiragino Sans GB","Microsoft YaHei","微软雅黑",Arial,sans-serif
|
2017-11-28 10:56:15 -05:00
|
|
|
#app
|
|
|
|
user-select none
|
2018-06-25 12:19:40 -04:00
|
|
|
overflow hidden
|
2018-01-30 02:35:05 -05:00
|
|
|
.el-button-group
|
|
|
|
width 100%
|
|
|
|
.el-button
|
|
|
|
width 50%
|
2017-11-27 19:21:12 -05:00
|
|
|
</style>
|