功能:完善门店能力与用户安全配置
This commit is contained in:
@@ -46,6 +46,10 @@
|
||||
</template>
|
||||
|
||||
<script setup lang="ts">
|
||||
/**
|
||||
* SettingsView page script.
|
||||
* Call guide: the template binds the reactive state below, and the methods are triggered by button clicks, lifecycle hooks, or router events.
|
||||
*/
|
||||
import { ref } from 'vue'
|
||||
import { useRouter } from 'vue-router'
|
||||
import {
|
||||
@@ -56,6 +60,7 @@ import {
|
||||
|
||||
const router = useRouter()
|
||||
|
||||
/** settingsSections is a reactive state variable used by the template and event handlers. */
|
||||
const settingsSections = ref([
|
||||
{
|
||||
type: 'title',
|
||||
@@ -70,10 +75,12 @@ const settingsSections = ref([
|
||||
}
|
||||
])
|
||||
|
||||
/** handleBackClick is a local helper used by this page script. */
|
||||
const handleBackClick = () => {
|
||||
router.back()
|
||||
}
|
||||
|
||||
/** handleSettingClick is a local helper used by this page script. */
|
||||
const handleSettingClick = (key: string) => {
|
||||
if (key === 'account') {
|
||||
router.push('/settings/account')
|
||||
|
||||
Reference in New Issue
Block a user