| | |
| | | onMounted(() => { |
| | | const localTheme = uni.getStorageSync('theme') || 'light' |
| | | theme.value = localTheme |
| | | console.log('theme', theme.value) |
| | | }) |
| | | |
| | | onLoad((options: { title?: string }) => { |
| | | const title = options.title ? decodeURIComponent(options.title) : ''; |
| | | console.log('接收到的title:', title); |
| | | uni.setNavigationBarTitle({ |
| | | title: title |
| | | }); |
| | |
| | | $message.showLoading() |
| | | const { data } = await $http.request('get', '/api/config/content/list/view?id=' +title, {}) |
| | | $message.hideLoading() |
| | | console.log('data:', data) |
| | | protocol.value=data |
| | | } |
| | | |