小编Mar*_*eau的帖子

如何在VueJS中实现Google Login API?

因此,我使用了https://developers.google.com/identity/sign-in/web/中的指南和代码

当我单击按钮时,它可以正常工作,它将重定向我到google登录页面,并且在身份验证过程中没有问题。

完成后,它将我重定向到该按钮所在的页面(vue组件)。从理论上讲,它应该调用onSignInmethod并使用来打印信息console.log,但这没有发生。

Vue不知何故无法执行data-onsuccess="onSignIn"。我尝试更改data-onsuccess为动态道具(:data-onsuccess)或事件处理(@data-onsuccess),但这两种方法都不起作用。

有人曾经解决过这个问题吗?还是有在Vue上实现它的特殊方法?

google-api google-login vue.js google-signin

9
推荐指数
3
解决办法
9303
查看次数

在ColdFusion中调用跟踪模板

如何在ColdFusion中跟踪模板路径?

IE我有以下文件夹和文件结构

  • index.cfm

    <cfset ArrayAppend(request.Trace, '/')> <cfdump var=#request.trace#>

  • FOO

    • index.cfm

      <cfset ArrayAppend(request.Trace, '/foo/')> <cfinclude template='../'>

    • 酒吧

      • index.cfm

        ArrayAppend(request.Trace,'/foo/bar/')> <cfinclude template='../'>

当我打电话时foo/bar/index.cfm,request.Trace等于:

  • '/富/酒吧/'
  • '/富/'
  • '/'

如果不明确声明每个文件夹名称,我怎么能这样做?

coldfusion

4
推荐指数
1
解决办法
168
查看次数

如何安装 maatwebsite/excel?

我正在尝试安装maatwebsite/excel;但是,我无法让它工作。

我尝试删除composer.lock文件并运行:

composer install
composer update
Run Code Online (Sandbox Code Playgroud)

我也试过:

composer require maatwebsite/excel --update-with-dependencies
Run Code Online (Sandbox Code Playgroud)

两种方法都不奏效。

我收到的错误是:

Problem 1
- maatwebsite/excel 3.1.10 requires phpoffice/phpspreadsheet ^1.6 -> satisfiable by phpoffice/phpspreadsheet[1.6.0, 1.7.0, 1.8.0, 1.8.1, 1.8.2, 1.9.0].
- maatwebsite/excel 3.1.11 requires phpoffice/phpspreadsheet ^1.6 -> satisfiable by phpoffice/phpspreadsheet[1.6.0, 1.7.0, 1.8.0, 1.8.1, 1.8.2, 1.9.0].
- maatwebsite/excel 3.1.12 requires phpoffice/phpspreadsheet ^1.6 -> satisfiable by phpoffice/phpspreadsheet[1.6.0, 1.7.0, 1.8.0, 1.8.1, 1.8.2, 1.9.0].
- maatwebsite/excel 3.1.13 requires phpoffice/phpspreadsheet ^1.6 -> satisfiable by phpoffice/phpspreadsheet[1.6.0, 1.7.0, 1.8.0, 1.8.1, 1.8.2, 1.9.0].
 . …
Run Code Online (Sandbox Code Playgroud)

composer-php laravel-6

3
推荐指数
3
解决办法
9225
查看次数