mirror of
https://github.com/vbenjs/vue-vben-admin.git
synced 2025-08-27 15:41:32 +08:00
style: add some notes
This commit is contained in:
@@ -23,14 +23,20 @@
|
||||
name: 'App',
|
||||
components: { ConfigProvider },
|
||||
setup() {
|
||||
// Initialize application settings
|
||||
useInitAppConfigStore();
|
||||
// Initialize network monitoring
|
||||
useListenerNetWork();
|
||||
// Initialize breakpoint monitoring
|
||||
createBreakpointListen();
|
||||
// Get system configuration
|
||||
const { projectSetting } = useSetting();
|
||||
// Get ConfigProvider configuration
|
||||
const { transformCellText } = useConfigProvider();
|
||||
|
||||
let lockOn = {};
|
||||
if (projectSetting.lockTime) {
|
||||
// Monitor the mouse or keyboard time, used to recalculate the lock screen time
|
||||
const { on } = useLockPage();
|
||||
lockOn = on;
|
||||
}
|
||||
|
@@ -22,8 +22,10 @@ setupRouter(app);
|
||||
// store
|
||||
setupStore(app);
|
||||
|
||||
// Directives
|
||||
setupDirectives(app);
|
||||
|
||||
// error-handle
|
||||
setupErrorHandle(app);
|
||||
|
||||
router.isReady().then(() => {
|
||||
@@ -35,8 +37,10 @@ if (isDevMode()) {
|
||||
window.__APP__ = app;
|
||||
}
|
||||
|
||||
// If you do not need to use the mock service in the production environment, you can comment the code
|
||||
if (isProdMode() && isUseMock()) {
|
||||
setupProdMockServer();
|
||||
}
|
||||
|
||||
// Used to share app instances in other modules
|
||||
setApp(app);
|
||||
|
@@ -1,3 +1,4 @@
|
||||
// Application related functions
|
||||
import type { ProjectConfig } from '/@/types/config';
|
||||
import type { App } from 'vue';
|
||||
import { computed, ref } from 'vue';
|
||||
|
@@ -1 +1,2 @@
|
||||
// 接口返回值data不能为这个,否则会判为请求失败
|
||||
export const errorResult = '__ERROR_RESULT__';
|
||||
|
Reference in New Issue
Block a user