File tree 1 file changed +12
-6
lines changed
1 file changed +12
-6
lines changed Original file line number Diff line number Diff line change 1
1
/*
2
2
* @Author : your name
3
3
* @Date : 2021-02-07 17:11:28
4
- * @LastEditTime : 2021-08-13 11:43:36
4
+ * @LastEditTime : 2021-08-18 17:51:13
5
5
* @LastEditors : Please set LastEditors
6
6
* @Description : In User Settings Edit
7
7
* @FilePath : \vue3-element-admin\src\views\layoutpages\common.js
8
8
*/
9
- import { defineAsyncComponent } from "vue" ;
10
- import FunctionPage from "@/components/FunctionPage" ;
11
9
12
10
/**
13
11
* @description :提交搜索
@@ -102,9 +100,17 @@ export const getAsyncRouteName = async (
102
100
name ,
103
101
{ router, route }
104
102
) => {
105
- const AsyncComponent = defineAsyncComponent ( ( ) =>
106
- import ( "@/views/layoutpages/" + path + ".vue" )
107
- ) ;
103
+ const FunctionPage = require ( "@/components/FunctionPage.vue" ) . default ;
104
+ const AsyncComponent = require ( "@/views/layoutpages/" +
105
+ path +
106
+ ".vue" ) . default ;
107
+ // const { defineAsyncComponent } = require("vue");
108
+ // const AsyncComponent = defineAsyncComponent(() =>
109
+ // import("@/views/layoutpages/" + path + ".vue")
110
+ // );
111
+ // import { defineAsyncComponent } from "vue";
112
+ // import FunctionPage from "@/components/FunctionPage";
113
+
108
114
const app = {
109
115
components : {
110
116
FunctionPage,
You can’t perform that action at this time.
0 commit comments