lq-c commented on code in PR #115:
URL:
https://github.com/apache/incubator-paimon-webui/pull/115#discussion_r1421709949
##########
paimon-web-ui-new/vite.config.ts:
##########
@@ -29,7 +29,7 @@ export default defineConfig({
server: {
proxy: {
'/api': {
- target: 'http://47.94.247.86:10088',
+ target: 'http://127.0.0.1:10088',
Review Comment:
This configuration does not need to be submitted
##########
paimon-web-ui-new/src/layouts/content/index.tsx:
##########
@@ -17,21 +17,47 @@ under the License. */
import NavBar from './components/topbar'
import styles from './index.module.scss'
+import SideBar from './components/sidebar'
+import { useData } from './use-data'
+import { useConfigStore } from '@/store/config'
export default defineComponent({
name: 'ContentPage',
setup() {
+ const configStore = useConfigStore()
+ const route = useRoute()
+ const { menuOptions, state } = useData()
+ const getSideOption = (state: any) => {
+ const activeNavKey = configStore.getCurrentNavActive
+ state.sideMenuOptions = menuOptions.value.find((m: any) => m.key ===
activeNavKey)?.sideMenuOptions || []
+ state.isShowSided = state.sideMenuOptions &&
state.sideMenuOptions.length > 0
Review Comment:
```suggestion
state.isShowSided = state.sideMenuOptions &&
state.sideMenuOptions.length
```
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]