DisabledForUser 请确保运行 npm run dev 时应用程序 id 设置正确?

问题描述 投票:0回答:2

我跑步时收到此消息

npm run dev

DisabledForUser 请确保应用程序 ID 设置正确。

我已经在app.blade.php中导入了javascript和css。接下来,在 home.blade.php 中,我使用 div id="app" 并在名为 client.vue 的 vue 组件中使用

App入口文件

@extends('layouts.app')

@section('content')

<div id="app">

<cliente></cliente>

</div>


@endsection

<!DOCTYPE html>
<html lang="{{ str_replace('_', '-', app()->getLocale()) }}">
    <head>
        <meta charset="utf-8">
        <meta name="viewport" content="width=device-width, initial-scale=1">

        <title>Laravel</title>

        <!-- Fonts -->
        <link href="https://fonts.googleapis.com/css?family=Nunito:200,600" rel="stylesheet">
        <!-- Styles -->
        <style>
          //some css 
        </style>
    </head>
    <body>
        
        <div class="flex-center position-ref full-height">
            @if (Route::has('login'))
                <div class="top-right links">
                    @auth
                        <a href="{{ url('/home') }}">Home</a>
                    @else
                        <a href="{{ route('login') }}">Login</a>

                        @if (Route::has('register'))
                            <a href="{{ route('register') }}">Register</a>
                        @endif
                    @endauth
                </div>
            @endif

            <div class="content">
                <div class="title m-b-md">
                    Laravel
                </div>

                <div class="links">
                    <a href="https://laravel.com/docs">Docs</a>
                    <a href="https://laracasts.com">Laracasts</a>
                    <a href="https://laravel-news.com">News</a>
                    <a href="https://blog.laravel.com">Blog</a>
                    <a href="https://nova.laravel.com">Nova</a>
                    <a href="https://forge.laravel.com">Forge</a>
                    <a href="https://github.com/laravel/laravel">GitHub</a>
                </div>
            </div>
        </div>
    </body>
</html>

vue.js npm laravel-5 vuejs2 vue-component
2个回答
3
投票

转至 Windows 设置 Windows 设置 → 通知和操作,然后启用再次尝试

npm run dev
的通知。


0
投票

您必须在 Windows 设置中启用通知才能运行。启用后再次运行您的代码,它会按预期工作。

© www.soinside.com 2019 - 2024. All rights reserved.