Vue 2 vue-router 2 laravel 5.3问题

时间:2016-10-06 15:17:24

标签: vue.js laravel-5.3 vue-router

请在控制台上帮我解决此错误

  

router.map 不是功能

我正在使用 browserify laravel5.3

这是我的app.js代码:

        var CProcess = (from m in DataContext.csrcallds.AsEnumerable()
                        where m.scheduledon >= earliestDate
                        && m.scheduledon <= objdate1.DateStart
                        && m.calltype == "CHQRUN"
                        && (SqlMethods.DateDiffDay(FluentDateTime.DateTimeExtensions.AddBusinessDays((DateTime)m.scheduledon, 2), m.completedon) > 2)
                        group m by new { m.scheduledon.Value.Year, m.scheduledon.Value.Month } into p
                        orderby p.Key.Year ascending, p.Key.Month ascending
                        select new Date1()
                        {
                            theDate = DateTime.Parse($"{p.Key.Month} - {p.Key.Year}"),
                            theCount = p.Count(),
                            theString = $"{p.Key.Month} - {p.Key.Year}"
                        });

1 个答案:

答案 0 :(得分:3)

vue-router 2.0,与Vue 2.0一样,与v1有重大变化。

在这种特定情况下,路由现在以不同方式声明:

PropertyInfo pi = new PropertyInfo();
pi.setName("maquinaLog");
pi.setNamespace(NAMESPACE);
pi.setValue(ML);
pi.setType(ML.getClass());
request.addProperty(pi);
request.addAttribute("xmlns:obe","http://schemas.datacontract.org/2004/07/OberthurService.Entidades");

https://router.vuejs.org/en/essentials/getting-started.html

强烈鼓励您阅读两者中发生了哪些变化。