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