save
This commit is contained in:
parent
9f2506b498
commit
5204b7a912
|
@ -51,7 +51,7 @@ export default defineComponent(() => {
|
|||
prefix={aIUrl}
|
||||
path={search.searchStr}
|
||||
label="AI搜索:"
|
||||
icon={<img class="w-4 h-4" src="/searchIcons/mita.jpg" alt="mita" />}
|
||||
icon={<img class="w-4 h-4" src="/tab/searchIcons/mita.jpg" alt="mita" />}
|
||||
current={search.current}
|
||||
num={0}
|
||||
/>
|
||||
|
@ -59,7 +59,7 @@ export default defineComponent(() => {
|
|||
prefix={translateUrl}
|
||||
path={search.searchStr}
|
||||
label="AI翻译:"
|
||||
icon={<img class="w-4 h-4" src="/searchIcons/translate.png" alt="translate" />}
|
||||
icon={<img class="w-4 h-4" src="/tab/searchIcons/translate.png" alt="translate" />}
|
||||
current={search.current}
|
||||
num={1}
|
||||
/>
|
||||
|
|
|
@ -100,12 +100,17 @@ export default defineComponent(() => {
|
|||
</div>
|
||||
) : (
|
||||
<div
|
||||
class={'px-7 py-2 rounded-md cursor-pointer'}
|
||||
class={'px-7 py-2 rounded-md text-white cursor-pointer'}
|
||||
style={{
|
||||
background: 'linear-gradient(180deg,#ffaa4e 0%,#ff6227 100%)'
|
||||
}}
|
||||
onClick={() => {
|
||||
router.go('settings-user')
|
||||
if (profile.id) {
|
||||
router.go('settings-user')
|
||||
}else {
|
||||
router.go('global-login')
|
||||
}
|
||||
// router.go('settings-user')
|
||||
}}
|
||||
>
|
||||
登录注册
|
||||
|
|
|
@ -14,6 +14,7 @@ export default defineComponent(() => {
|
|||
idx.value = 0
|
||||
}
|
||||
}, 5000)
|
||||
|
||||
})
|
||||
return () => (
|
||||
<div class="w-full h-full bg-[#ecfbff] flex flex-col" style={{
|
||||
|
|
|
@ -51,9 +51,7 @@ export default defineStore("work", () => {
|
|||
const audio = new Audio()
|
||||
const time = useTimeStore()
|
||||
const remainingTime = computed(() => {
|
||||
if (!state.isStart) {
|
||||
return 0
|
||||
}
|
||||
|
||||
return dayjs(state.beginTime).add(1, 'minute').diff(dayjs(time.date), 'second')
|
||||
})
|
||||
|
||||
|
@ -61,11 +59,7 @@ export default defineStore("work", () => {
|
|||
state.isStart = false
|
||||
state.beginTime = -1
|
||||
stopMusic()
|
||||
if (remainingTime.value <= 0) {
|
||||
state.timeList.push(
|
||||
dayjs().valueOf()
|
||||
)
|
||||
}
|
||||
|
||||
}
|
||||
const togglePlay = () => {
|
||||
if (state.isPlaying) {
|
||||
|
@ -97,10 +91,17 @@ export default defineStore("work", () => {
|
|||
|
||||
}
|
||||
watch(remainingTime, (val) => {
|
||||
if (val <= 0) {
|
||||
console.log(val);
|
||||
|
||||
if (val < 0) {
|
||||
stopTomatoTime()
|
||||
|
||||
}
|
||||
if (remainingTime.value === 0) {
|
||||
state.timeList.push(
|
||||
dayjs().valueOf()
|
||||
)
|
||||
}
|
||||
})
|
||||
const openShowModel = ref<undefined | null | TomatoTarget>()
|
||||
const openFullscreen = ref(false)
|
||||
|
|
Loading…
Reference in New Issue